Commit ca14749a authored by Mael Kervella's avatar Mael Kervella Committed by root

Fix django 1.10 code incorrect

parent d264280e
......@@ -23,7 +23,7 @@ class InterfaceSerializer(serializers.ModelSerializer):
class ExtensionNameField(serializers.RelatedField):
def to_representation(self, value):
return value.alias
return value.name
class TypeSerializer(serializers.ModelSerializer):
extension = ExtensionNameField(read_only=True)
......
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