Make the API accept ordering and relations for the meeting date field.
- Legacy-Id: 14273
This commit is contained in:
parent
0f2a79dfe3
commit
a146c22f8d
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue