rm works_now from elastic
This commit is contained in:
parent
ea5140cc9c
commit
9cdb3cca27
|
|
@ -37,7 +37,7 @@ class EstablishmentDocument(Document):
|
|||
works_noon = fields.ListField(fields.IntegerField(
|
||||
attr='works_noon'
|
||||
))
|
||||
works_now = fields.BooleanField(attr='works_now')
|
||||
# works_now = fields.BooleanField(attr='works_now')
|
||||
tags = fields.ObjectField(
|
||||
properties={
|
||||
'id': fields.IntegerField(attr='id'),
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ class EstablishmentDocumentSerializer(DocumentSerializer):
|
|||
'schedule',
|
||||
'works_noon',
|
||||
'works_evening',
|
||||
'works_now',
|
||||
# 'works_now',
|
||||
# 'collections',
|
||||
# 'establishment_type',
|
||||
# 'establishment_subtypes',
|
||||
|
|
|
|||
|
|
@ -152,12 +152,12 @@ class EstablishmentDocumentViewSet(BaseDocumentViewSet):
|
|||
constants.LOOKUP_QUERY_IN,
|
||||
],
|
||||
},
|
||||
'works_now': {
|
||||
'field': 'works_now',
|
||||
'lookups': [
|
||||
constants.LOOKUP_FILTER_TERM,
|
||||
]
|
||||
},
|
||||
# 'works_now': {
|
||||
# 'field': 'works_now',
|
||||
# 'lookups': [
|
||||
# constants.LOOKUP_FILTER_TERM,
|
||||
# ]
|
||||
# },
|
||||
}
|
||||
|
||||
geo_spatial_filter_fields = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user