From 60910ae6db8895307690741f8f995f3f78698ff8 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sat, 29 Mar 2025 20:58:20 -0400 Subject: [PATCH] Add support for AddEmbeddedIndex --- django_mongodb_backend/models.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/django_mongodb_backend/models.py b/django_mongodb_backend/models.py index adeba21e..8c5e5c74 100644 --- a/django_mongodb_backend/models.py +++ b/django_mongodb_backend/models.py @@ -3,11 +3,16 @@ from .managers import EmbeddedModelManager +class EMBEDDED: + pass + + class EmbeddedModel(models.Model): objects = EmbeddedModelManager() class Meta: abstract = True + db_table = EMBEDDED def delete(self, *args, **kwargs): raise NotSupportedError("EmbeddedModels cannot be deleted.")