Skip to content

Instantly share code, notes, and snippets.

@AndySun25
Created January 14, 2016 13:17
Show Gist options
  • Save AndySun25/b9cb5e203126841f7cbb to your computer and use it in GitHub Desktop.
Save AndySun25/b9cb5e203126841f7cbb to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\django\core\handlers\base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:\Python34\lib\site-packages\django\views\decorators\csrf.py", line 58, in wrapped_view
return view_func(*args, **kwargs)
File "C:\Python34\lib\site-packages\rest_framework\viewsets.py", line 87, in view
return self.dispatch(request, *args, **kwargs)
File "C:\Python34\lib\site-packages\rest_framework\views.py", line 466, in dispatch
response = self.handle_exception(exc)
File "C:\Python34\lib\site-packages\rest_framework\views.py", line 463, in dispatch
response = handler(request, *args, **kwargs)
File "C:\Python34\lib\site-packages\rest_framework_expander\views.py", line 65, in list
adapter.instance = optimizer.to_optimized_objects(adapter.instance)
File "C:/Users/Andy/Work/git/backend\api\views\optimizers\channel.py", line 84, in to_optimized_objects
post_feed = fetch_latest_objects(Post, 'channel_id', objects, {'state': Post.PUBLISHED}, limit=3)
File "C:/Users/Andy/Work/git/backend\api\views\optimizers\common.py", line 33, in fetch_latest_objects
outer_query = inner_query.wrap().where(rank__lte=limit)
File "C:\Python34\lib\site-packages\querybuilder\query.py", line 1419, in wrap
field_names = self.get_field_names()
File "C:\Python34\lib\site-packages\querybuilder\query.py", line 1221, in get_field_names
field_names.extend(table.get_field_names())
AttributeError: 'NoneType' object has no attribute 'get_field_names'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment