Commits

Luke Plant committed 144daae

Small cleanup

  • Participants
  • Parent commits c067e99

Comments (0)

Files changed (1)

File django_easyfilters/filters.py

                 # choice. The upper bound is always inclusive. This gives
                 # filters that behave sensibly e.g. with 10-20, 20-30, 30-40,
                 # the first will include 10 and 20, the second will exlude 20.
-                lower_inclusive = i == 0
-                choice = self.choice_type([RangeEnd(vals[0], lower_inclusive),
+                choice = self.choice_type([RangeEnd(vals[0], i == 0),
                                            RangeEnd(vals[1], True)])
                 choices.append(FilterChoice(choice.display(),
                                             count,