mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 19:33:11 +00:00
Fix django 1.10 code incorrect
This commit is contained in:
parent
d264280ee3
commit
ca14749a35
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class InterfaceSerializer(serializers.ModelSerializer):
|
||||||
|
|
||||||
class ExtensionNameField(serializers.RelatedField):
|
class ExtensionNameField(serializers.RelatedField):
|
||||||
def to_representation(self, value):
|
def to_representation(self, value):
|
||||||
return value.alias
|
return value.name
|
||||||
|
|
||||||
class TypeSerializer(serializers.ModelSerializer):
|
class TypeSerializer(serializers.ModelSerializer):
|
||||||
extension = ExtensionNameField(read_only=True)
|
extension = ExtensionNameField(read_only=True)
|
||||||
|
|
Loading…
Reference in a new issue