Skip to content

Instantly share code, notes, and snippets.

@hcarvalhoalves
Created March 26, 2012 21:02
Show Gist options
  • Save hcarvalhoalves/2209659 to your computer and use it in GitHub Desktop.
Save hcarvalhoalves/2209659 to your computer and use it in GitHub Desktop.
Internal Server Error: /v1/cinema/
Traceback (most recent call last):
File "/Users/hcalves/.virtualenvs/claquete/lib/python2.7/site-packages/tastypie/resources.py", line 192, in wrapper
response = callback(request, *args, **kwargs)
File "/Users/hcalves/.virtualenvs/claquete/lib/python2.7/site-packages/tastypie/resources.py", line 397, in dispatch_list
return self.dispatch('list', request, **kwargs)
File "/Users/hcalves/.virtualenvs/claquete/lib/python2.7/site-packages/tastypie/resources.py", line 427, in dispatch
response = method(request, **kwargs)
File "/Users/hcalves/.virtualenvs/claquete/lib/python2.7/site-packages/tastypie/resources.py", line 1029, in get_list
objects = self.obj_get_list(request=request, **self.remove_api_resource_names(kwargs))
File "/Users/hcalves/.virtualenvs/claquete/lib/python2.7/site-packages/tastypie/resources.py", line 1739, in obj_get_list
base_object_list = self.apply_filters(request, applicable_filters)
File "/Users/hcalves/.virtualenvs/claquete/lib/python2.7/site-packages/tastypie/resources.py", line 1711, in apply_filters
return self.get_object_list(request).filter(**applicable_filters)
File "/Users/hcalves/.virtualenvs/claquete/lib/python2.7/site-packages/tastypie/resources.py", line 1719, in get_object_list
return self._meta.queryset._clone()
AttributeError: 'NoneType' object has no attribute '_clone'
@jpatel3
Copy link

jpatel3 commented Oct 7, 2012

Never mind. found the solution, it was syntax error on queryset!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment