allow for ordering by num_wishes

pull/1/head
Andromeda Yelton 2013-02-18 15:15:53 -05:00
parent 08ad67a447
commit ed06ac4763
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ class WorkResource(ModelResource):
queryset = models.Work.objects.all()
resource_name = 'work'
filtering = {'editions': ALL_WITH_RELATIONS, 'id': ALL, 'identifiers': ALL_WITH_RELATIONS}
ordering = ['num_wishes']
class CampaignResource(ModelResource):
work = fields.ToOneField(WorkResource, 'work')