Explorar el Código

Clean-up PinResource.build_filters method

tags/v1.0.0
Krzysztof Klimonda hace 11 años
padre
commit
e5bd3d577d
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. +1
    -3
      pinry/core/api.py

+ 1
- 3
pinry/core/api.py Ver fichero

@@ -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



Cargando…
Cancelar
Guardar