Skip to content

Conversation

@nibytes
Copy link

@nibytes nibytes commented Jul 4, 2018

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.

@coveralls
Copy link

coveralls commented Jul 4, 2018

Coverage Status

Coverage decreased (-13.3%) to 86.747% when pulling da3c5bb on nibytes:django-16-compatibility into 98b89fb on and3rson:master.

@nibytes
Copy link
Author

nibytes commented Jul 4, 2018

I did not find where I can change the available versions of Django, if you help me with it will be good.


# Django 1.6.*
import django
if django.VERSION[0] == 1 and django.VERSION == 6:
Copy link

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]) ?

Copy link
Author

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

@nibytes
Copy link
Author

nibytes commented Jul 8, 2018

Guys?

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

Successfully merging this pull request may close these issues.

3 participants