Skip to content

Commit

Permalink
adds module name to the display #13037
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi1693 committed Aug 4, 2023
1 parent 98006a0 commit 9f19b99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netbox/extras/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ class ReportSerializer(serializers.Serializer):

@extend_schema_field(serializers.CharField())
def get_display(self, obj):
return obj.name
return f'{obj.name} ({obj.module})'


class ReportDetailSerializer(ReportSerializer):
Expand Down Expand Up @@ -533,7 +533,7 @@ def get_vars(self, instance):

@extend_schema_field(serializers.CharField())
def get_display(self, obj):
return obj.name
return f'{obj.name} ({obj.module})'


class ScriptDetailSerializer(ScriptSerializer):
Expand Down

0 comments on commit 9f19b99

Please sign in to comment.