Skip to content

Commit

Permalink
adds standardized list API for scripts and reports #13037
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi1693 committed Aug 4, 2023
1 parent b35ffff commit 6776232
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 str(obj)
return obj.name


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 str(obj)
return obj.name


class ScriptDetailSerializer(ScriptSerializer):
Expand Down

0 comments on commit 6776232

Please sign in to comment.