Permalink
Browse files

Fix django_filters update from name to field_name

  • Loading branch information...
overshard committed Oct 20, 2018
1 parent c78cd2b commit 0f9d5da1b2b5d3329f737ab0621a75f2f7c290c1
Showing with 2 additions and 2 deletions.
  1. +2 −2 api/views.py
@@ -62,8 +62,8 @@ class ProjectViewSet(viewsets.ModelViewSet):
class EntryFilter(django_filters.rest_framework.FilterSet):
min_date = django_filters.DateFilter(name="date", lookup_expr="gte")
max_date = django_filters.DateFilter(name="date", lookup_expr="lte")
min_date = django_filters.DateFilter(field_name="date", lookup_expr="gte")
max_date = django_filters.DateFilter(field_name="date", lookup_expr="lte")
class Meta:
model = Entry

0 comments on commit 0f9d5da

Please sign in to comment.