Correct filtering option, ALL is not 'ALL' V01.31
authorymh <ymh.work@gmail.com>
Fri, 16 Nov 2012 17:12:08 +0100
changeset 960 ba35e8803c76
parent 959 8cee1b5d46c8
child 961 61da23337d76
Correct filtering option, ALL is not 'ALL'
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'