mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-02 17:42:26 +00:00
Merge branch 'fix_dhcp_api_serializer' into 'dev'
Add ip_type in dhcp api serializer See merge request federez/re2o!486
This commit is contained in:
commit
0057832192
1 changed files with 2 additions and 1 deletions
|
@ -1168,11 +1168,12 @@ class HostMacIpSerializer(serializers.ModelSerializer):
|
|||
hostname = serializers.CharField(source="domain.name", read_only=True)
|
||||
extension = serializers.CharField(source="domain.extension.name", read_only=True)
|
||||
mac_address = serializers.CharField(read_only=True)
|
||||
ip_type = serializers.CharField(source="machine_type.ip_type", read_only=True)
|
||||
ipv4 = serializers.CharField(source="ipv4.ipv4", read_only=True)
|
||||
|
||||
class Meta:
|
||||
model = machines.Interface
|
||||
fields = ("hostname", "extension", "mac_address", "ipv4")
|
||||
fields = ("hostname", "extension", "mac_address", "ipv4", "ip_type")
|
||||
|
||||
|
||||
# DNS
|
||||
|
|
Loading…
Reference in a new issue