Django 1.9 compatibility

- Remove deprecated `load ur from future`
- Refactor urls.py as list
This commit is contained in:
Scot Hacker 2016-01-06 23:44:57 -08:00
parent c3e47ba438
commit 8ee28118fe
10 changed files with 21 additions and 27 deletions

View file

@ -52,7 +52,7 @@ def list_lists(request):
if request.user.is_superuser:
list_list = List.objects.all().order_by('group', 'name')
else:
list_list = List.objects.filter(group__in=request.user.groups.all).order_by('group', 'name')
list_list = List.objects.filter(group__in=request.user.groups.all()).order_by('group', 'name')
# Count everything
list_count = list_list.count()