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:
parent
4ba595d9cb
commit
7eb488cfa9
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue