summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--devel/views.py4
-rw-r--r--packages/views/flag.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/devel/views.py b/devel/views.py
index ff1dec1..61c1e56 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -152,7 +152,7 @@ def change_profile(request):
if request.POST:
form = ProfileForm(request.POST)
profile_form = UserProfileForm(request.POST, request.FILES,
- instance=request.user.get_profile())
+ instance=request.user.userprofile)
if form.is_valid() and profile_form.is_valid():
request.user.email = form.cleaned_data['email']
if form.cleaned_data['passwd1']:
@@ -163,7 +163,7 @@ def change_profile(request):
return HttpResponseRedirect('/devel/')
else:
form = ProfileForm(initial={'email': request.user.email})
- profile_form = UserProfileForm(instance=request.user.get_profile())
+ profile_form = UserProfileForm(instance=request.user.userprofile)
return render(request, 'devel/profile.html',
{'form': form, 'profile_form': profile_form})
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: