perf: account add platform_id

pull/8991/head
feng 2 years ago
parent d95ced5109
commit a445e47f3d

@ -54,7 +54,7 @@ class AccountSerializerCreateMixin(serializers.ModelSerializer):
class AccountSerializer(AccountSerializerCreateMixin, BaseAccountSerializer): class AccountSerializer(AccountSerializerCreateMixin, BaseAccountSerializer):
asset = ObjectRelatedField( asset = ObjectRelatedField(
required=False, queryset=Asset.objects, required=False, queryset=Asset.objects,
label=_('Asset'), attrs=('id', 'name', 'address') label=_('Asset'), attrs=('id', 'name', 'address', 'platform_id')
) )
class Meta(BaseAccountSerializer.Meta): class Meta(BaseAccountSerializer.Meta):

Loading…
Cancel
Save