Simple methods to override Model creation and update #8028
Unanswered
reinert
asked this question in
Ideas & Suggestions
Replies: 1 comment
-
@reinert Can you please point out some use-cases where this might be helpful? For specifically overriding the model save call, I've seen projects usually overriding the model's own |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
The ModelSerializer performs a lot of logic in create and update methods before and after actually saving the instance.
Thus, It would be good to have the option of overriding only the specific Model saving call.
I created a simple patch to explain better the idea, detaching two simple methods from create and update to allow users to customize only the actual saving logic.
#7984
Suggestions are welcome.
Beta Was this translation helpful? Give feedback.
All reactions