summaryrefslogtreecommitdiffstats
path: root/packages/views
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-02-27 02:51:40 +0100
committerDan McGee <dan@archlinux.org>2013-02-27 02:51:40 +0100
commitdd0ecfaeaceb1e1b8a185800de35f0f6e741feac (patch)
tree5cdb1a5952ec510baac10a719dc7edc8d7d93be2 /packages/views
parent9ddee3494f931439e7c47eddee48ec9c6a09e662 (diff)
downloadarchweb-dd0ecfaeaceb1e1b8a185800de35f0f6e741feac.tar.gz
archweb-dd0ecfaeaceb1e1b8a185800de35f0f6e741feac.tar.xz
Use user.userprofile rather than user.get_profile()
The get_profile() function is deprecated as of Django 1.5. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/views')
-rw-r--r--packages/views/flag.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/views/flag.py b/packages/views/flag.py
index edb3f09..5c76e1d 100644
--- a/packages/views/flag.py
+++ b/packages/views/flag.py
@@ -110,7 +110,7 @@ def flag(request, name, repo, arch):
subject = '%s package [%s] marked out-of-date' % \
(pkg.repo.name, pkg.pkgname)
for maint in maints:
- if maint.get_profile().notify == True:
+ if maint.userprofile.notify == True:
toemail.append(maint.email)
if toemail: