[Update] 修改AccessKey序列类

pull/4052/head
Bai 5 years ago
parent ff546774e9
commit 5ee8519274

@ -15,11 +15,9 @@ __all__ = [
class AccessKeySerializer(serializers.ModelSerializer):
id_display = serializers.UUIDField(source='id', read_only=True)
class Meta:
model = AccessKey
fields = ['id', 'secret', 'is_active', 'date_created', 'id_display']
fields = ['id', 'secret', 'is_active', 'date_created']
read_only_fields = ['id', 'secret', 'date_created']

Loading…
Cancel
Save