mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-25 22:22:26 +00:00
Correction : la variable type a changé de nom
This commit is contained in:
parent
9fdf6056ce
commit
f5d1412635
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ class IpTypeField(serializers.RelatedField):
|
||||||
""" Serializer for an IpType object field """
|
""" Serializer for an IpType object field """
|
||||||
|
|
||||||
def to_representation(self, value):
|
def to_representation(self, value):
|
||||||
return value.type
|
return str(value)
|
||||||
|
|
||||||
def to_internal_value(self, data):
|
def to_internal_value(self, data):
|
||||||
pass
|
pass
|
||||||
|
@ -164,7 +164,7 @@ class TypeSerializer(serializers.ModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = IpType
|
model = IpType
|
||||||
fields = (
|
fields = (
|
||||||
"type",
|
"name",
|
||||||
"extension",
|
"extension",
|
||||||
"domaine_ip_start",
|
"domaine_ip_start",
|
||||||
"domaine_ip_stop",
|
"domaine_ip_stop",
|
||||||
|
|
Loading…
Reference in a new issue