ivelum / djangoql

Advanced search language for Django
MIT License
1.02k stars 89 forks source link

AttributeError: 'QuerySet' object has no attribute 'explain' #79

Closed derekenos closed 3 years ago

derekenos commented 3 years ago

I ran into the error:

File "/.../lib/python3.5/site-packages/djangoql/admin.py", line 87, in get_search_results
    qs.explain()
AttributeError: 'QuerySet' object has no attribute 'explain'

using Django 2.0.8

$ python -c 'import django; print(django.__version__)'
2.0.8

It looks like QuerySet.explain() was added in 2.1

I regrettably can't offer a different solution to the problem that the usage of explain solves.

Thank you for this great project!

stebunovd commented 3 years ago

hey @derekenos, thank you for reporting the issue. The new version 0.15.2 with the fix is already on PyPI, please check it out.

derekenos commented 3 years ago

v0.15.2 resolves the issue. Thank you!