mirror of
https://github.com/pinry/pinry.git
synced 2025-11-13 16:45:41 +01:00
Allow basic sorting by tag.
This commit is contained in:
@@ -27,6 +27,7 @@ class PinResource(ModelResource): # pylint: disable-msg=R0904
|
||||
|
||||
if 'tag' in filters:
|
||||
orm_filters['tags__name__in'] = filters['tag'].split(',')
|
||||
|
||||
return orm_filters
|
||||
|
||||
def dehydrate_tags(self, bundle):
|
||||
|
||||
Reference in New Issue
Block a user