From 46deb271f62dea3fcf4412304967ddc8283433d3 Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Thu, 5 Oct 2023 13:03:05 +0200 Subject: [PATCH] fix: the contenttype of the rootobject should not be user editable --- apis_core/apis_metainfo/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis_core/apis_metainfo/models.py b/apis_core/apis_metainfo/models.py index 84876f549..77f8cff88 100644 --- a/apis_core/apis_metainfo/models.py +++ b/apis_core/apis_metainfo/models.py @@ -57,7 +57,7 @@ class RootObject(models.Model): # triples where the subject's or object's contenttype must be respected (e.g. get all triples # where the subject is a Person) self_contenttype = models.ForeignKey( - ContentType, on_delete=models.deletion.CASCADE, null=True, blank=True + ContentType, on_delete=models.deletion.CASCADE, null=True, blank=True, editable=False ) objects = models.Manager() objects_inheritance = InheritanceManager()