From a48f76a2d3a98c21d4b37f19cf84073e77db55c8 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 7 Apr 2015 22:20:48 +0100 Subject: 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 Signed-off-by: Jeremy Kerr --- templates/patchwork/profile.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'templates/patchwork/profile.html') diff --git a/templates/patchwork/profile.html b/templates/patchwork/profile.html index 624efe2..116d6d6 100644 --- a/templates/patchwork/profile.html +++ b/templates/patchwork/profile.html @@ -7,16 +7,16 @@ {% block body %}

-{% if user.get_profile.maintainer_projects.count %} +{% if user.profile.maintainer_projects.count %} Maintainer of -{% for project in user.get_profile.maintainer_projects.all %} +{% for project in user.profile.maintainer_projects.all %} {{ project.linkname }}{% if not forloop.last %},{% endif %}{% endfor %}. {% endif %} -{% if user.get_profile.contributor_projects.count %} +{% if user.profile.contributor_projects.count %} Contributor to -{% for project in user.get_profile.contributor_projects.all %} +{% for project in user.profile.contributor_projects.all %} {{ project.linkname }}{% if not forloop.last %},{% endif %}{% endfor %}. {% endif %} @@ -25,10 +25,10 @@ Contributor to

Todo

-{% if user.get_profile.n_todo_patches %} +{% if user.profile.n_todo_patches %}

Your todo - list contains {{ user.get_profile.n_todo_patches }} - patch{{ user.get_profile.n_todo_patches|pluralize:"es" }}.

+ list contains {{ user.profile.n_todo_patches }} + patch{{ user.profile.n_todo_patches|pluralize:"es" }}.

{% else %}

Your todo list contains patches that have been delegated to you. You have no items in your todo list at present.

-- cgit v1.2.3