Make the API accept ordering and relations for the meeting date field.

- Legacy-Id: 14273
This commit is contained in:
Henrik Levkowetz 2017-11-02 12:17:17 +00:00
parent 0f2a79dfe3
commit a146c22f8d

View file

@ -21,10 +21,11 @@ class MeetingResource(ModelResource):
queryset = Meeting.objects.all() queryset = Meeting.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'meeting' #resource_name = 'meeting'
ordering = ['date', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"number": ALL, "number": ALL,
"date": ALL, "date": ALL_WITH_RELATIONS,
"city": ALL, "city": ALL,
"country": ALL, "country": ALL,
"time_zone": ALL, "time_zone": ALL,