Skip to content

Commit 13eb53d

Browse files
committed
Cleanup table name resolution
1 parent 7e22194 commit 13eb53d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox_custom_objects/utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ def get_viewname(model, action=None, rest_api=False):
8787

8888

8989
def get_custom_object_type_from_content_type(content_type):
90-
return content_type.model.replace("table", "").replace("model", "")
90+
return int(content_type.model.replace("table", "").replace("model", ""))

0 commit comments

Comments
 (0)