8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 11:53:12 +00:00

Fix django 1.10 code incorrect

This commit is contained in:
Mael Kervella 2016-12-19 19:55:35 +00:00 committed by root
parent d264280ee3
commit ca14749a35

View file

@ -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)