Commit f5d14126 authored by Gabriel Detraz's avatar Gabriel Detraz Committed by chirac

Correction : la variable type a changé de nom

parent 9fdf6056
Pipeline #2365 passed with stage
in 3 minutes and 44 seconds
......@@ -48,7 +48,7 @@ class IpTypeField(serializers.RelatedField):
""" Serializer for an IpType object field """
def to_representation(self, value):
return value.type
return str(value)
def to_internal_value(self, data):
pass
......@@ -164,7 +164,7 @@ class TypeSerializer(serializers.ModelSerializer):
class Meta:
model = IpType
fields = (
"type",
"name",
"extension",
"domaine_ip_start",
"domaine_ip_stop",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment