#problem creating an account api
2 messages · Page 1 of 1 (latest)
and validated_data is a dict, so if you want the account_transactions value, you can access it like validated_data['account_transactions']
2 messages · Page 1 of 1 (latest)
for the create and update methods in a serializer class, the way you access the data passed to the serializer is through the validated_data argument for each of those methods
and validated_data is a dict, so if you want the account_transactions value, you can access it like validated_data['account_transactions']