Skip to content

Commit

Permalink
Merge pull request #2015 from akvo/#2014-rest-update-error
Browse files Browse the repository at this point in the history
[#2014] Remove old results framework fields in REST API
  • Loading branch information
zzgvh committed Feb 24, 2016
2 parents eda1e8e + 196bd32 commit 6138723
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions akvo/rest/views/project_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ class ProjectUpdateViewSet(PublicProjectViewSet):
serializer_class = ProjectUpdateSerializer
filter_fields = {
'project': ['exact', ],
'indicator_period': ['exact', ],
'user': ['exact', ],
'uuid': ['exact', 'icontains', ],
'period_update': ['exact', 'gt', 'gte', 'lt', 'lte', ],
}

paginate_by_param = 'limit'
Expand Down Expand Up @@ -90,10 +88,8 @@ class ProjectUpdateExtraViewSet(PublicProjectViewSet):
serializer_class = ProjectUpdateExtraSerializer
filter_fields = {
'project': ['exact', ],
'indicator_period': ['exact', ],
'user': ['exact', ],
'uuid': ['exact', 'icontains', ],
'period_update': ['exact', 'gt', 'gte', 'lt', 'lte', ],
# These filters only accept a date, not a datetime
# 'created_at': ['exact', 'gt', 'gte', 'lt', 'lte', ],
# 'last_modified_at': ['exact', 'gt', 'gte', 'lt', 'lte', ],
Expand Down

0 comments on commit 6138723

Please sign in to comment.