mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 15:12:25 +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):
|
||||
def to_representation(self, value):
|
||||
return value.alias
|
||||
return value.name
|
||||
|
||||
class TypeSerializer(serializers.ModelSerializer):
|
||||
extension = ExtensionNameField(read_only=True)
|
||||
|
|
Loading…
Reference in a new issue