# HG changeset patch # User ymh # Date 1353082328 -3600 # Node ID ba35e8803c76b87d68a4c95f180cebf35d71b73f # Parent 8cee1b5d46c8b1583b09daf3be4412a9e900b077 Correct filtering option, ALL is not 'ALL' diff -r 8cee1b5d46c8 -r ba35e8803c76 src/ldt/ldt/api/ldt/resources/project.py --- a/src/ldt/ldt/api/ldt/resources/project.py Fri Nov 16 17:02:18 2012 +0100 +++ b/src/ldt/ldt/api/ldt/resources/project.py Fri Nov 16 17:12:08 2012 +0100 @@ -5,7 +5,7 @@ from ldt.api.ldt.resources import ContentResource from ldt.api.ldt.resources.user import UserResource from tastypie.authorization import Authorization -from tastypie.resources import Bundle, ModelResource +from tastypie.resources import Bundle, ModelResource, ALL from tastypie import fields from ldt.security import protect_models, unprotect_models @@ -20,8 +20,8 @@ queryset = Project.objects.all() serializer = CinelabSerializer() filtering = { - 'state' : 'ALL', - 'ldt_id' : 'ALL' + 'state' : ALL, + 'ldt_id' : ALL } # In the future version : # detail_uri_name = 'ldt_id'