Django 1.9 compatibility
- Remove deprecated `load ur from future` - Refactor urls.py as list
This commit is contained in:
parent
c3e47ba438
commit
8ee28118fe
10 changed files with 21 additions and 27 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue