cleanup
This commit is contained in:
parent
d4141a1e00
commit
e9724760d9
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