Skip to content

Commit

Permalink
inclusive range filters
Browse files Browse the repository at this point in the history
  • Loading branch information
davish committed Oct 20, 2019
1 parent 55da378 commit 6a216b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plan/filters.py
Expand Up @@ -24,7 +24,7 @@ def filter_bounds(queryset, bounds, semester=None):
upper_bound = float(upper_bound)

return queryset.filter(Q(**{
f'{field}__gt': lower_bound,
f'{field}__gte': lower_bound,
f'{field}__lte': upper_bound,

}) | Q(**{f'{field}__isnull': True}))
Expand Down

0 comments on commit 6a216b4

Please sign in to comment.