Skip to content

Commit 95f4d78

Browse files
Update startup_scripts/280_custom_links.py
Co-authored-by: Christian Mäder <cimnine@users.noreply.github.com>
1 parent 07a0b1d commit 95f4d78

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

startup_scripts/280_custom_links.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111

1212
def get_content_type_id(content_type_str):
1313
try:
14-
id = ContentType.objects.get(model=content_type_str).id
15-
return id
14+
return ContentType.objects.get(model=content_type_str).id
1615
except ContentType.DoesNotExist:
1716
print("⚠️ Error determining content type id for user declared var: {0}".format(content_type_str))
1817

0 commit comments

Comments
 (0)