Skip to content

Commit 7f79cce

Browse files
authored
Allow custom fields to point to custom objects (#131)
1 parent 70fb4c1 commit 7f79cce

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

netbox_custom_objects/models.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
JournalingMixin,
3636
NotificationsMixin,
3737
get_model_features,
38-
model_is_public,
3938
TagsMixin,
4039
)
4140
from netbox.registry import registry
@@ -466,9 +465,8 @@ def create_model(self):
466465
# Ensure the ContentType exists and is immediately available
467466
ct = self.get_or_create_content_type()
468467
model = self.get_model()
469-
is_public = model_is_public(model)
470468
features = get_model_features(model)
471-
ct.is_public = is_public
469+
ct.public = True
472470
ct.features = features
473471
ct.save()
474472

0 commit comments

Comments
 (0)