1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

#6732 - Serializers

This commit is contained in:
Daniel Sheppard
2021-10-27 23:07:04 -05:00
parent 93de6c9f88
commit 9b5f45aee1
2 changed files with 4 additions and 1 deletions

View File

@@ -27,6 +27,8 @@ class ASNSerializer(PrimaryModelSerializer):
url = serializers.HyperlinkedIdentityField(view_name='ipam-api:asn-detail')
tenant = NestedTenantSerializer(required=False, allow_null=True)
site_count = serializers.IntegerField(read_only=True)
class Meta:
model = ASN
fields = [