Removed unnecessary else in SelectDateWidget.id_for_lable().

This commit is contained in:
Srinivas Reddy Thatiparthy 2017-08-08 07:31:45 +05:30 committed by Tim Graham
parent ba1d82df63
commit b5d47b18f1
1 changed files with 1 additions and 2 deletions

View File

@ -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)