Skip to content

Commit

Permalink
fix select_str not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Sep 17, 2020
1 parent a4044ae commit 15f25e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin_tools_stats/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def get_control_form(self):
for key, name in dy_map.items():
if isinstance(name, (list, tuple)):
name = name[1]
selected_str = 'selected=selected' if key == i.default_option else ''
selected_str = 'selected=selected' if key == i.default_option else ''
temp += '<option value="%s" %s>%s</option>' % (key, selected_str, name)
temp += '</select>'

Expand Down

0 comments on commit 15f25e5

Please sign in to comment.