#problem creating an account api

2 messages · Page 1 of 1 (latest)

spiral herald
#

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']