]> git.ozlabs.org Git - patchwork/commit
Resolve removed 'AUTH_PROFILE_MODULE' setting
authorStephen Finucane <stephenfinucane@hotmail.com>
Tue, 7 Apr 2015 21:20:48 +0000 (22:20 +0100)
committerJeremy Kerr <jk@ozlabs.org>
Sun, 3 May 2015 05:46:52 +0000 (13:46 +0800)
commita48f76a2d3a98c21d4b37f19cf84073e77db55c8
treec91e98b4f522f0ec8072d19d89a3bae64040a2e0
parent3d74843a8982926ab4ce310ed937a4f41ee36810
Resolve removed 'AUTH_PROFILE_MODULE' setting

The 'AUTH_PROFILE_MODULE' setting, and the 'get_profile()' method on
the 'User' model are removed in Django 1.7. This causes errors when
using Patchwork with Django 1.7+.

There are three changes necessary:

 * Replace profile model's 'ForeignKey' with a 'OneToOneField'
 * Remove all 'get_profile()' calls
 * Delete 'AUTH_PROFILE_MODULE' settings from 'settings.py'

These changes are discussed here:

    http://deathofagremmie.com/2014/05/24/retiring-get-profile-and-auth-profile-module/

Django 1.6 also introduces two other notable changes:

 * The 'XViewMiddleware' module has been moved
 * A new test runner has been introduced

It is not possible to fix these issues without breaking compatibility
with Django 1.5. As a result they have been ignored and must be
resolved in a future release.

Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
13 files changed:
apps/patchwork/filters.py
apps/patchwork/forms.py
apps/patchwork/models.py
apps/patchwork/paginator.py
apps/patchwork/tests/test_bundles.py
apps/patchwork/tests/utils.py
apps/patchwork/views/project.py
apps/patchwork/views/user.py
apps/settings.py
templates/base.html
templates/patchwork/patch.html
templates/patchwork/profile.html
templates/patchwork/project.html