Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ElasticsearchFilterBackend throws Exception #54

Open
gnarula opened this issue Jul 27, 2016 · 0 comments
Open

ElasticsearchFilterBackend throws Exception #54

gnarula opened this issue Jul 27, 2016 · 0 comments

Comments

@gnarula
Copy link

gnarula commented Jul 27, 2016

Traceback:

File "/home/gaurav/dev/proj/venv/lib/python2.7/site-packages/rest_framework/generics.py", line 151, in filter_queryset
    queryset = backend().filter_queryset(self.request, queryset, self)
  File "/home/gaurav/dev/proj/venv/lib/python2.7/site-packages/django_elasticsearch/contrib/restframework/restframework3.py", line 25, in filter_queryset
    if view.action == 'list':
AttributeError: 'AccountView' object has no attribute 'action'

AccountView is a ListCreateAPIView with filter_backends = (ElasticsearchFilterBackend, )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant