Skip to content

Does DRF CreateModelMixin break atomicity? #9196

Closed Answered by APCBoston
APCBoston asked this question in Potential Issue
Discussion options

You must be logged in to vote

A colleague has helped me to find my error here. I had believed that the serializer's __init__ method would call create(), but this is not so -- despite the intuitive appeal of the constructor being the place where "create" happens, that in fact occurs in save(), which entirely moots my concern.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by APCBoston
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant