summaryrefslogtreecommitdiff
path: root/todolists/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-12-29 12:26:50 -0600
committerDan McGee <dan@archlinux.org>2012-12-29 12:26:50 -0600
commit39a603bf65c4aec780e4711074e9ed27fb7c301e (patch)
tree0fe9a20dc9580c80438fbfe382bc6bfe01331880 /todolists/views.py
parentabe02e3a2a6cf4fd4b0b82c2a1dd4259a9a5debe (diff)
Defer the 'raw' field when listing todolists
A lot like skipping fetching of the news content; we definitely don't need this just to list the todolists on index pages. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists/views.py')
-rw-r--r--todolists/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/todolists/views.py b/todolists/views.py
index 413d8675..788d74f2 100644
--- a/todolists/views.py
+++ b/todolists/views.py
@@ -206,7 +206,7 @@ def send_todolist_emails(todo_list, new_packages):
def public_list(request):
- todo_lists = Todolist.objects.incomplete()
+ todo_lists = Todolist.objects.incomplete().defer('raw')
# total hackjob, but it makes this a lot less query-intensive.
all_pkgs = [tp for tl in todo_lists for tp in tl.packages()]
attach_maintainers(all_pkgs)