mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
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_):
|
||||
for first_select in self._parse_date_fmt():
|
||||
return '%s_%s' % (id_, first_select)
|
||||
else:
|
||||
return '%s_month' % id_
|
||||
return '%s_month' % id_
|
||||
|
||||
def value_from_datadict(self, data, files, name):
|
||||
y = data.get(self.year_field % name)
|
||||
|
Loading…
Reference in New Issue
Block a user