cleanup
This commit is contained in:
parent
3a8f437f96
commit
85d74ca669
1 changed files with 2 additions and 3 deletions
|
@ -86,9 +86,8 @@ def findLists(request):
|
||||||
|
|
||||||
if is_section_request:
|
if is_section_request:
|
||||||
qs = query['qs']
|
qs = query['qs']
|
||||||
if not is_featured:
|
if not is_featured and not request.user.is_anonymous():
|
||||||
if not request.user.is_anonymous():
|
qs = qs.filter(position__in=models.Position.objects.filter(user=request.user))
|
||||||
qs = qs.filter(position__in=models.Position.objects.filter(user=request.user))
|
|
||||||
qs = qs.order_by('position__position')
|
qs = qs.order_by('position__position')
|
||||||
else:
|
else:
|
||||||
qs = _order_query(query['qs'], query['sort'])
|
qs = _order_query(query['qs'], query['sort'])
|
||||||
|
|
Loading…
Reference in a new issue