Fix `date` filter for models with `time` field

Fixes #342
This commit is contained in:
Christopher C. Wells 2021-11-19 10:50:38 -05:00
parent cc4e36bafd
commit 54a24423c0
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ from core import models
class TimeFieldFilter(filters.FilterSet):
date = filters.DateFilter(field_name='date', label='Date')
date = filters.DateFilter(field_name='time__date', label='Date')
date_min = filters.DateFilter(field_name='time__date', label='Min. Date',
lookup_expr='gte')
date_max = filters.DateFilter(field_name='time__date', label='Max. Date',