From f19aaf3f4c300c5fead1757745b0dcb539aed61d Mon Sep 17 00:00:00 2001 From: Kuroshini Date: Tue, 26 Nov 2019 18:54:54 +0300 Subject: [PATCH] Wine colors search --- apps/search_indexes/views.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/search_indexes/views.py b/apps/search_indexes/views.py index 69efe6ff..37ed46fb 100644 --- a/apps/search_indexes/views.py +++ b/apps/search_indexes/views.py @@ -188,6 +188,13 @@ class EstablishmentDocumentViewSet(BaseDocumentViewSet): constants.LOOKUP_QUERY_IN, ] }, + 'wine_colors_id': { + 'field': 'products.wine_colors.id', + 'lookups': [ + constants.LOOKUP_QUERY_IN, + constants.LOOKUP_QUERY_EXCLUDE, + ], + }, 'wine_region_id': { 'field': 'products.wine_region.id', 'lookups': [