forked from TabbycatDebate/tabbycat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create function for saving sub-serializers
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.
- Loading branch information
Showing
1 changed file
with
41 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters