Skip to content

Commit

Permalink
fix: the contenttype of the rootobject should not be user editable
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Oct 5, 2023
1 parent a0c9c1d commit 1546250
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apis_core/apis_metainfo/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ 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()
Expand Down

0 comments on commit 1546250

Please sign in to comment.