Browse Source

Clean-up PinResource.build_filters method

tags/v1.0.0
Krzysztof Klimonda 11 years ago
parent
commit
e5bd3d577d
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      pinry/core/api.py

+ 1
- 3
pinry/core/api.py View File

@@ -100,10 +100,8 @@ class PinResource(ModelResource):
return map(str, bundle.obj.tags.all())

def build_filters(self, filters=None):
if filters is None:
filters = {}
orm_filters = super(PinResource, self).build_filters(filters)
if 'tag' in filters:
if filters and 'tag' in filters:
orm_filters['tags__name__in'] = filters['tag'].split(',')
return orm_filters



Loading…
Cancel
Save