Skip to content

Commit

Permalink
Update serializer to properly define URL
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSheps committed Sep 13, 2024
1 parent 0bb6c79 commit 3c5ed04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions netbox_config_backup/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@


class BackupSerializer(NetBoxModelSerializer):
url = serializers.HyperlinkedIdentityField(
view_name='plugins-api:netbox_config_backup-api:backup-detail'
)
device = DeviceSerializer(nested=True, required=False, allow_null=True),
ip = IPAddressSerializer(nested=True, required=False, allow_null=True)

Expand Down

0 comments on commit 3c5ed04

Please sign in to comment.