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

es_syncdb_callback not works 1.10+ #73

Open
M1ha-Shvn opened this issue Jun 7, 2017 · 1 comment
Open

es_syncdb_callback not works 1.10+ #73

M1ha-Shvn opened this issue Jun 7, 2017 · 1 comment

Comments

@M1ha-Shvn
Copy link

M1ha-Shvn commented Jun 7, 2017

The bug is in models.py => es_syncdb_callback(), line 81:
if int(get_version()[2]) > 6: returns False for django 1.10 and 1.11 as it gets 1 > 6 not 11 > 6...
The correct code (for support of django 1.10+ and django 2.0+) is:

v = get_version().split('.')
if int(v[0]) > 1 or int(v[1]) > 6 
@lauxley
Copy link
Contributor

lauxley commented Jun 7, 2017

Thx !

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

2 participants