mirror of https://github.com/django/django.git
Removed unnecessary else in SelectDateWidget.id_for_lable().
This commit is contained in:
parent
ba1d82df63
commit
b5d47b18f1
|
@ -1036,8 +1036,7 @@ class SelectDateWidget(Widget):
|
||||||
def id_for_label(self, id_):
|
def id_for_label(self, id_):
|
||||||
for first_select in self._parse_date_fmt():
|
for first_select in self._parse_date_fmt():
|
||||||
return '%s_%s' % (id_, first_select)
|
return '%s_%s' % (id_, first_select)
|
||||||
else:
|
return '%s_month' % id_
|
||||||
return '%s_month' % id_
|
|
||||||
|
|
||||||
def value_from_datadict(self, data, files, name):
|
def value_from_datadict(self, data, files, name):
|
||||||
y = data.get(self.year_field % name)
|
y = data.get(self.year_field % name)
|
||||||
|
|
Loading…
Reference in New Issue