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 46deb27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis_core/apis_metainfo/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 46deb27

Please sign in to comment.