Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@jpatel3 jpatel3 commented Oct 7, 2012

were you able to find the issue? I am facing the same.

@jpatel3

This comment has been minimized.

Copy link

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