diff --git a/core/elasticsearch/documents.py b/core/elasticsearch/documents.py index 0722f9c5..a59c8b3a 100644 --- a/core/elasticsearch/documents.py +++ b/core/elasticsearch/documents.py @@ -1,5 +1,6 @@ from django_elasticsearch_dsl import Document, fields from django_elasticsearch_dsl.registries import registry +from health_check.db.models import TestModel from core.elasticsearch import COMMON_ANALYSIS, ActiveOnlyMixin, _add_multilang_fields from core.models import Brand, Category, Product @@ -113,3 +114,18 @@ class BrandDocument(ActiveOnlyMixin, Document): registry.register_document(BrandDocument) + + +class TestModelDocument(Document): + class Index: + name = "testmodels" + + class Django: + model = TestModel + fields = [ + "title", + ] + ignore_signals = True + + +registry.register_document(TestModelDocument)