summaryrefslogtreecommitdiff
path: root/todolists/views.py
diff options
context:
space:
mode:
authorDusty Phillips <dusty@archlinux.ca>2010-07-22 14:07:50 -0600
committerDan McGee <dan@archlinux.org>2010-07-25 15:57:10 -0500
commitd316f4b1975ee3c189e1df4087bea938bb43a377 (patch)
treed1764567aa9fbef18acd057c29188dacf612964e /todolists/views.py
parentea18bc7362992a8e0be0cb769d8c29a09b39f73c (diff)
Add a basic view for todo lists
Dan: rename template and view to something a bit more concise. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists/views.py')
-rw-r--r--todolists/views.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/todolists/views.py b/todolists/views.py
index 83dd87d6..6f1c6ed8 100644
--- a/todolists/views.py
+++ b/todolists/views.py
@@ -154,5 +154,10 @@ def send_todolist_email(todo):
[m.email for m in maints],
fail_silently=True)
+def public_list(request):
+ todo_lists = Todolist.objects.incomplete()
+ return render_to_response("todolists/public_list.html",
+ RequestContext(request, {"todo_lists": todo_lists}))
+
# vim: set ts=4 sw=4 et: