-
Notifications
You must be signed in to change notification settings - Fork 29
Django 1.6 compatibility #19
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
base: master
Are you sure you want to change the base?
Conversation
I did not find where I can change the available versions of Django, if you help me with it will be good. |
searchableselect/views.py
Outdated
|
||
# Django 1.6.* | ||
import django | ||
if django.VERSION[0] == 1 and django.VERSION == 6: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you wanted to write django.VERSION[0] == 1 and django.VERSION[1] == 6
(missed [1]
) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it was be 4 a.m. Now I will correct
Guys? |
In my old project on Django 1.6.5 very needed your useful widget and I make compatibility.
Django 1.6 not have JsonResponse and get_model taken next 2 arguments: app and model(may be this true for lower versions of Django, no tested). I think this patch does help other peoples with legacy projects.