diff --git a/netbox_custom_objects/models.py b/netbox_custom_objects/models.py index 858d793..7467170 100644 --- a/netbox_custom_objects/models.py +++ b/netbox_custom_objects/models.py @@ -35,7 +35,6 @@ JournalingMixin, NotificationsMixin, get_model_features, - model_is_public, TagsMixin, ) from netbox.registry import registry @@ -466,9 +465,8 @@ def create_model(self): # Ensure the ContentType exists and is immediately available ct = self.get_or_create_content_type() model = self.get_model() - is_public = model_is_public(model) features = get_model_features(model) - ct.is_public = is_public + ct.public = True ct.features = features ct.save()