remove establishment document filtering by country code
This commit is contained in:
parent
00bcd6c205
commit
7805a63055
|
|
@ -61,9 +61,6 @@ class EstablishmentDocumentViewSet(BaseDocumentViewSet):
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
qs = super(EstablishmentDocumentViewSet, self).get_queryset()
|
qs = super(EstablishmentDocumentViewSet, self).get_queryset()
|
||||||
qs = qs.filter('match', is_publish=True)
|
qs = qs.filter('match', is_publish=True)
|
||||||
if self.request.country_code:
|
|
||||||
qs = qs.filter('term',
|
|
||||||
**{'address.city.country.code': self.request.country_code})
|
|
||||||
return qs
|
return qs
|
||||||
|
|
||||||
filter_backends = [
|
filter_backends = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user