Skip to content

Commit 0a3be0b

Browse files
abhi1693jeremystretch
authored andcommitted
adds related models count on custom field #12825
1 parent 00ebdfe commit 0a3be0b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

netbox/extras/views.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ class CustomFieldView(generic.ObjectView):
4444
queryset = CustomField.objects.all()
4545

4646
def get_extra_context(self, request, instance):
47-
related_models = (
48-
# (DataFile.objects.restrict(request.user, 'view').filter(source=instance), 'source_id'),
49-
)
47+
related_models = ()
5048

5149
for content_type in instance.content_types.all():
5250
related_models += (

0 commit comments

Comments
 (0)