Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
flake
Browse files Browse the repository at this point in the history
  • Loading branch information
moh-moola committed Sep 27, 2018
1 parent 39a25ac commit f771080
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service_directory/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def perform_search(self, sqs):

if categories or all_categories:
if all_categories:
categories = Category.objects.filter().values_list('pk', flat=True)
categories = Category.objects.filter()\
.values_list('pk', flat=True)
sqs = sqs.filter(categories__in=categories)

if location:
Expand Down

0 comments on commit f771080

Please sign in to comment.