We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e22194 commit 13eb53dCopy full SHA for 13eb53d
netbox_custom_objects/utilities.py
@@ -87,4 +87,4 @@ def get_viewname(model, action=None, rest_api=False):
87
88
89
def get_custom_object_type_from_content_type(content_type):
90
- return content_type.model.replace("table", "").replace("model", "")
+ return int(content_type.model.replace("table", "").replace("model", ""))
0 commit comments