Closed dpoirier closed 8 years ago
A few 1.9 deprecation warnings now pop up. They don't need to be fixed in this PR, but some of them seem pretty simple to fix, so maybe you want to:
/home/vkurup/dev/CTS/catalog/utils.py:7: RemovedInDjango19Warning: The django.forms.util module has been renamed. Use django.forms.utils instead.
from django.forms.util import ErrorDict
/home/vkurup/.virtualenvs/cts/local/lib/python2.7/site-packages/rest_framework/settings.py:22: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9.
from django.utils import importlib, six
/home/vkurup/.virtualenvs/cts/local/lib/python2.7/site-packages/rest_framework/serializers.py:19: RemovedInDjango19Warning: django.contrib.contenttypes.generic is deprecated and will be removed in Django 1.9. Its contents have been moved to the fields, forms, and admin submodules of django.contrib.contenttypes.
from django.contrib.contenttypes.generic import GenericForeignKey
/home/vkurup/.virtualenvs/cts/local/lib/python2.7/site-packages/rest_framework/serializers.py:154: RemovedInDjango19Warning: SortedDict is deprecated and will be removed in Django 1.9.
return SortedDict(fields)
/home/vkurup/dev/CTS/catalog/utils.py:7: RemovedInDjango19Warning: The django.forms.util module has been renamed. Use django.forms.utils instead.
from django.forms.util import ErrorDict
/home/vkurup/.virtualenvs/cts/local/lib/python2.7/site-packages/rest_framework/settings.py:22: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9.
from django.utils import importlib, six
/home/vkurup/.virtualenvs/cts/local/lib/python2.7/site-packages/rest_framework/serializers.py:19: RemovedInDjango19Warning: django.contrib.contenttypes.generic is deprecated and will be removed in Django 1.9. Its contents have been moved to the fields, forms, and admin submodules of django.contrib.contenttypes.
from django.contrib.contenttypes.generic import GenericForeignKey
/home/vkurup/.virtualenvs/cts/local/lib/python2.7/site-packages/rest_framework/serializers.py:154: RemovedInDjango19Warning: SortedDict is deprecated and will be removed in Django 1.9.
return SortedDict(fields)
Looks reasonable to me :cactus:
Three of the Django 1.9 deprecation warnings are in Django Rest Framework. They would probably go away if we upgraded it, but upgrading DRF often requires other changes, so I'll pass on that for this pull request.
This is deployed to staging.
Upgrade from Django 1.7 (now out of support) to Django 1.8 (Long Term Support)
Fixes #26