Commits

Luke Plant committed 7275f96

Small fix for max_depth and bridge choices

  • Participants
  • Parent commits 62aeaef

Comments (0)

Files changed (1)

File django_easyfilters/filters.py

         retval = []
         while chosen_level < new_level - 1:
             chosen_level += 1
+            if chosen_level > self.max_depth_level:
+                continue
             date_choice = DateChoice(DateRangeType.get(chosen_level, True),
                                      new_choice.values)
             retval.append(FilterChoice(date_choice.display(),