replace deprecated code for django-1.7

Bug #1266676 reported by Matthias Runge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Matthias Runge

Bug Description

1.7

See the Django 1.5 release notes for more details on these changes.

    The module django.utils.simplejson will be removed. The standard library provides json which should be used instead.
    The function django.utils.itercompat.product will be removed. The Python builtin version should be used instead.
    Auto-correction of INSTALLED_APPS and TEMPLATE_DIRS settings when they are specified as a plain string instead of a tuple will be removed and raise an exception.
    The mimetype argument to the __init__ methods of HttpResponse, SimpleTemplateResponse, and TemplateResponse, will be removed. content_type should be used instead. This also applies to the render_to_response() shortcut and the sitemap views, index() and sitemap().
    When HttpResponse is instantiated with an iterator, or when content is set to an iterator, that iterator will be immediately consumed.
    The AUTH_PROFILE_MODULE setting, and the get_profile() method on the User model, will be removed.
    The cleanup management command will be removed. It’s replaced by clearsessions.
    The daily_cleanup.py script will be removed.
    The depth keyword argument will be removed from select_related().
    The undocumented get_warnings_state()/restore_warnings_state() functions from django.test.utils and the save_warnings_state()/ restore_warnings_state() django.test.*TestCase methods are deprecated. Use the warnings.catch_warnings context manager available starting with Python 2.6 instead.
    The undocumented check_for_test_cookie method in AuthenticationForm will be removed following an accelerated deprecation. Users subclassing this form should remove calls to this method, and instead ensure that their auth related views are CSRF protected, which ensures that cookies are enabled.
    The version of django.contrib.auth.views.password_reset_confirm() that supports base36 encoded user IDs (django.contrib.auth.views.password_reset_confirm_uidb36) will be removed. If your site has been running Django 1.6 for more than PASSWORD_RESET_TIMEOUT_DAYS, this change will have no effect. If not, then any password reset links generated before you upgrade to Django 1.7 won’t work after the upgrade.

This is connected with blueprint django-1point6

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/65239

David Lyle (david-lyle)
Changed in horizon:
milestone: icehouse-2 → icehouse-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/65239
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=8901cb60c7a27f5a071208a6719524f32be1412b
Submitter: Jenkins
Branch: master

commit 8901cb60c7a27f5a071208a6719524f32be1412b
Author: Matthias Runge <email address hidden>
Date: Tue Jan 7 09:25:05 2014 +0100

    Rewrite pieces of code deprecated by Django 1.7

    The mimtype argument of HttpResponse, SimpleTemplateResponse,
    TemplateResponse, and render_to_response was removed; one should
    use content_type instead

    Change-Id: I62214c37264845dbabf006a32616e894c4ac9e3a
    Closes-bug: #1266676
    Partially-impelements: blueprint django-1point6

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: icehouse-3 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.