summaryrefslogtreecommitdiff
path: root/packages/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/views.py')
-rw-r--r--packages/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/views.py b/packages/views.py
index 4cc4cc2f..60867d19 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -43,7 +43,7 @@ def update(request):
mode = 'disown'
if mode:
- repos = request.user.userprofile_user.all()[0].allowed_repos.all()
+ repos = request.user.userprofile.allowed_repos.all()
pkgs = Package.objects.filter(id__in=ids, repo__in=repos)
disallowed_pkgs = Package.objects.filter(id__in=ids).exclude(
repo__in=repos)