diff options
author | Dusty Phillips <buchuki@gmail.com> | 2008-10-11 00:32:25 +0200 |
---|---|---|
committer | Dusty Phillips <buchuki@gmail.com> | 2008-10-11 00:32:25 +0200 |
commit | 13d730ab2b3d4c97b6c72bd1374fd6bbbcb454ff (patch) | |
tree | 84162be78c1e1686c7a72c00c61fb40f1d0a637e /devel | |
parent | 6da51a8cae0440eecc2d598c10df00f8bb0e31b2 (diff) | |
download | archweb-13d730ab2b3d4c97b6c72bd1374fd6bbbcb454ff.tar.gz archweb-13d730ab2b3d4c97b6c72bd1374fd6bbbcb454ff.tar.xz |
fix broken maintainer packages links
Diffstat (limited to 'devel')
-rw-r--r-- | devel/views.py | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/devel/views.py b/devel/views.py index b372479..e0e25e1 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') |