From ca14749a352d9c548e4d45cef13ff6208fcef08e Mon Sep 17 00:00:00 2001 From: Mael Kervella Date: Mon, 19 Dec 2016 19:55:35 +0000 Subject: [PATCH] Fix django 1.10 code incorrect --- machines/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machines/serializers.py b/machines/serializers.py index 64d51d94..575faacd 100644 --- a/machines/serializers.py +++ b/machines/serializers.py @@ -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)