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