I have a model Comment that when created may or may not create a new user. For this reason, my API requires a password field when creating a new comment. Here is my Comment
What you can do is to overwrite the pre_save
or create
function and take out the commenter_pw
from the data fields that are sent (not sure, but you can probably take it out form request.POST
or after you have serialized it), so the framework should not rise the error.
Plus, if you have additional logic you can implement it there before saving it (such as the one for checking if the user have to be created or what).