Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create function for saving sub-serializers #2543

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Create function for saving sub-serializers #2543

merged 1 commit into from
Dec 10, 2024

Conversation

tienne-B
Copy link
Member

There is a common pattern for creating/updating objects in the API for nested objects, overriding validated_data. This commit creates a helper function to avoid repeating.

This also fixes failures caused by not overriding the "_errors" attribute.

There is a common pattern for creating/updating objects in the API for
nested objects, overriding `validated_data`. This commit creates a
helper function to avoid repeating.

This also fixes failures caused by not overriding the "_errors"
attribute.
@tienne-B tienne-B merged commit 2265ea3 into develop Dec 10, 2024
3 of 4 checks passed
@tienne-B tienne-B deleted the api/sub-saves branch December 10, 2024 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant