DT
Size: a a a
DT
M
А
M
DT
M
А
А
А
EC
<input type='hidden' name='destination_wallet[address]'как мне построить объект таким образом , чтобы принимающая данные сторона получала destination_wallet[currency] например? потому что на данный момент не принимает говорит не верные данные
value='#{data.transaction_details.payment_details.destination_wallet.
address}'>
<input type='hidden' name='destination_wallet[currency]'
value='#{data.transaction_details.payment_details.destination_wallet.
currency}'>
formdata = {и отправляю либой:
'destination_wallet': {
'address': data['transaction_details']['payment_details']['destination_wallet']['address'],
'currency': data['transaction_details']['payment_details']['destination_wallet']['currency']
}
}
r = requests.post(url=request_url, data=formdata)но ничего не выходит
NG
class DateSerializer(serializers.ModelSerializer):
date = serializers.DateTimeField(format='%Y-%m-%dT%H:%M:%SZ')
def get_initial(self):
initial = super(DateSerializer, self).get_initial()
if initial.get('date') is None:
date = timezone.now()
initial['date'] = date.replace(second=0, microsecond=0)
return initial
def validate_date(self, value):
return value.replace(second=0, microsecond=0)
ZR
DT
ZR
ZR
ZR
DT
А
S
S