mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-12-01 20:34:11 +01:00
Update startup_scripts/280_custom_links.py
Co-authored-by: Christian Mäder <cimnine@users.noreply.github.com>
This commit is contained in:
parent
07a0b1d7ef
commit
95f4d7856a
@ -11,8 +11,7 @@ if custom_links is None:
|
|||||||
|
|
||||||
def get_content_type_id(content_type_str):
|
def get_content_type_id(content_type_str):
|
||||||
try:
|
try:
|
||||||
id = ContentType.objects.get(model=content_type_str).id
|
return ContentType.objects.get(model=content_type_str).id
|
||||||
return id
|
|
||||||
except ContentType.DoesNotExist:
|
except ContentType.DoesNotExist:
|
||||||
print("⚠️ Error determining content type id for user declared var: {0}".format(content_type_str))
|
print("⚠️ Error determining content type id for user declared var: {0}".format(content_type_str))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user