Skip to content

Commit

Permalink
fix none choice in charts
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Oct 22, 2024
1 parent e575443 commit 34043e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions admin_tools_stats/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,7 @@ def _get_dynamic_choices(
choices.update(
((i, (i, fchoices[i] if i in fchoices else i)) for i in choices_queryset),
)
choices.update([("None", (None, "None"))])
if count_limit:
choices.update(
[("other", (other_choices_queryset, "other"))],
Expand Down

0 comments on commit 34043e2

Please sign in to comment.