path: root/apps/patchwork/views/
diff options
authorStephen Finucane <>2015-04-07 22:20:48 +0100
committerJeremy Kerr <>2015-05-03 13:46:52 +0800
commita48f76a2d3a98c21d4b37f19cf84073e77db55c8 (patch)
treec91e98b4f522f0ec8072d19d89a3bae64040a2e0 /apps/patchwork/views/
parent3d74843a8982926ab4ce310ed937a4f41ee36810 (diff)
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 '' These changes are discussed here: 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 <> Signed-off-by: Jeremy Kerr <>
Diffstat (limited to 'apps/patchwork/views/')
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/patchwork/views/ b/apps/patchwork/views/
index 05f0912..114dbe0 100644
--- a/apps/patchwork/views/
+++ b/apps/patchwork/views/
@@ -29,7 +29,7 @@ def project(request, project_id):
context.project = project
context['maintainers'] = User.objects.filter( \
- userprofile__maintainer_projects = project)
+ profile__maintainer_projects = project)
context['n_patches'] = Patch.objects.filter(project = project,
archived = False).count()
context['n_archived_patches'] = Patch.objects.filter(project = project,