summaryrefslogtreecommitdiff
path: root/devel/views.py
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-10-10 18:32:25 -0400
committerDusty Phillips <buchuki@gmail.com>2008-10-10 18:32:25 -0400
commit13d730ab2b3d4c97b6c72bd1374fd6bbbcb454ff (patch)
tree84162be78c1e1686c7a72c00c61fb40f1d0a637e /devel/views.py
parent6da51a8cae0440eecc2d598c10df00f8bb0e31b2 (diff)
fix broken maintainer packages links
Diffstat (limited to 'devel/views.py')
-rw-r--r--devel/views.py20
1 files changed, 6 insertions, 14 deletions
diff --git a/devel/views.py b/devel/views.py
index b3724795..e0e25e17 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -8,28 +8,20 @@ from archweb_dev.main.models import UserProfile, News
def index(request):
'''the Developer dashboard'''
- thismaint = request.user
-
- # get a list of incomplete package todo lists
todos = Todolist.objects.get_incomplete()
- # get flagged-package stats for all maintainers
- if thismaint:
- # get list of flagged packages for this maintainer
- pkgs = Package.objects.filter(
- maintainer=thismaint.id).filter(
- needupdate=True).order_by('repo', 'pkgname')
- else:
- pkgs = None
+ pkgs = Package.objects.filter(
+ maintainer=request.user).filter(
+ needupdate=True).order_by('repo', 'pkgname')
return render_response(
request, 'devel/index.html',
- {'pkgs': pkgs, 'todos': todos, 'maint': thismaint,
+ {'pkgs': pkgs, 'todos': todos, 'maint': request.user,
'repos': Repo.objects.all(), 'arches': Arch.objects.all(),
'maintainers':
- [User(id=0, first_name="Orphans")] + list(User.objects.all())
+ [User(id=0, username="orphan", first_name="Orphans")] + list(
+ User.objects.all())
})
-#@is_maintainer
def change_notify(request):
maint = User.objects.get(username=request.user.username)
notify = request.POST.get('notify', 'no')