Closed mislavcimpersak closed 8 years ago
I'm closing this myself :D Some more stuff is needed.
Will reopen later on.
Cool, thanks for putting in the work on this! We'd love to add 1.9 support.
Ok. I'll update my code or my team mate will do a new pull request with updates for Django 1.9. My team mate and me didn't quite talked it through who's doing what today.
But don't worry, daguerre will have Django 1.9 support soon :)
I've made several changes to make django-daguerre compatibile with Django 1.9.
First I've added testing Django 1.9 against Python 2.7, 3.4 and 3.5. Since official Django support for Python 3.3 has ended with Django 1.8 I have taken out of travis and tox configs testing Django 1.9 against Python 3.3.
Django 1.9 release notes - Python compatibility
Second, Django 1.9 dropped it's custom
SortedDict
data type. I've replacedSortedDict
with Python'sOrderedDict
. Since original author was sorting theSortedDict
I've sorted theOrderedDict
accordingly. Below is the example comparing results of current sorting ofSortedDict
and new sorting ofOrderedDict
.And last
get_model
method is imported from a different path depending on the Django version.