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.

This commit is contained in:
Lee Phillips 2014-06-22 00:37:51 -04:00
parent 4ba595d9cb
commit 7eb488cfa9

View file

@ -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: