From 7eb488cfa933c78940d3d91c54ff3a71bc5e21e9 Mon Sep 17 00:00:00 2001 From: Lee Phillips Date: Sun, 22 Jun 2014 00:37:51 -0400 Subject: [PATCH] The top view (list of lists) generated a javascript error because base.html refers to thedate, which the view function list_lists did not define. --- todo/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/todo/views.py b/todo/views.py index 4dc48ad..f0dd24c 100644 --- a/todo/views.py +++ b/todo/views.py @@ -37,6 +37,8 @@ def list_lists(request): """ Homepage view - list of lists a user can view, and ability to add a list. """ + thedate = datetime.datetime.now() + # Make sure user belongs to at least one group. group_count = request.user.groups.all().count() if group_count == 0: