ViewSet method create never validates nested model
I’m learning WebSockets [django channels] to use along with DRF. I have created simple HTML form to create Comment
. The form contains some User
data so everyone can post a comment and the data entered is being used to create a new User
(posting comment not requiring any authentication at all).
Everything works fine when sending POST request from DRF Browsable API. However doesn’t work when sending data from HTML form : returns error "user": ["This field is required."]