Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Index user profiles
Jakub Draganekf43da95537f3
diff --git a/saleor/search/documents.py b/saleor/search/documents.pyindex ee2e199083..00a1dbd410 100644--- a/saleor/search/documents.py+++ b/saleor/search/documents.py@@ -1,5 +1,6 @@from django_elasticsearch_dsl import DocType, Indexfrom ..product.models import Product+from ..userprofile.models import Userstorefront = Index('storefront')storefront.settings(number_of_shards=1, number_of_replicas=0)@@ -16,3 +17,11 @@ class ProductDocument(DocType):'description','is_published']++users = Index('users')+[email protected]_type+class UserDocument(DocType):+ class Meta:+ model = User+ fields = ['email', 'is_staff']