From 499e007e49168217b1ba7bf75a99d28d84a204f6 Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Mon, 11 Nov 2024 14:55:31 +0100 Subject: [PATCH] fix(models): make MongoDbDataMixin an abstract model --- apis_instance_nsvis/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apis_instance_nsvis/models.py b/apis_instance_nsvis/models.py index 7584732..1ad1fc3 100644 --- a/apis_instance_nsvis/models.py +++ b/apis_instance_nsvis/models.py @@ -22,9 +22,12 @@ class MongoDbModel(models.Model): content_object = GenericForeignKey("content_type", "object_id") -class MongoDbDataMixin: +class MongoDbDataMixin(models.Model): mongodbdata = GenericRelation(MongoDbModel) + class Meta: + abstract = True + class Person(E21_Person, AbstractEntity, VersionMixin, MongoDbDataMixin): biography = models.TextField(blank=True, verbose_name=_("Biography"))