Skip to content

Commit 95071a6

Browse files
committed
Cap the "Custom Objects linking to this object" table size at 20
1 parent 4cf36b9 commit 95071a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox_custom_objects/template_content.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def left_page(self):
4848
linked_custom_objects = []
4949
for field in custom_object_type_fields:
5050
model = field.custom_object_type.get_model()
51-
for model_object in model.objects.all():
51+
for model_object in model.objects.all()[0:19]:
5252
model_field = getattr(model_object, field.name)
5353
if model_field:
5454
if field.type == CustomFieldTypeChoices.TYPE_MULTIOBJECT:

0 commit comments

Comments
 (0)