diff options
author | Dan McGee <dan@archlinux.org> | 2013-01-25 09:54:24 -0700 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-01-25 09:54:24 -0700 |
commit | 4244ff7a42566949f8ee85e922ed48f4a80407f7 (patch) | |
tree | 21caf4d67aa36d06c6a921608901ad059752e744 /todolists/views.py | |
parent | f9252df1138ae388168cf76cb3d654a2abbce4ec (diff) | |
parent | dc6cc49f6f876983f76f5f8c05a2285801f27ea0 (diff) |
Merge branch 'on-the-plane'release_2013-01-25
Diffstat (limited to 'todolists/views.py')
-rw-r--r-- | todolists/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/todolists/views.py b/todolists/views.py index fcf62e23..f333728a 100644 --- a/todolists/views.py +++ b/todolists/views.py @@ -16,7 +16,7 @@ from main.models import Package, Repo from main.utils import find_unique_slug from packages.utils import attach_maintainers from .models import Todolist, TodolistPackage -from .utils import get_annotated_todolists +from .utils import get_annotated_todolists, attach_staging class TodoListForm(forms.ModelForm): @@ -69,6 +69,7 @@ def view(request, slug): # we don't hold onto the result, but the objects are the same here, # so accessing maintainers in the template is now cheap attach_maintainers(todolist.packages()) + attach_staging(todolist.packages(), todolist.pk) arches = {tp.arch for tp in todolist.packages()} repos = {tp.repo for tp in todolist.packages()} return render(request, 'todolists/view.html', { |