Django: Overriding form save? -
Is there a document on this? I could not cure anything.
I have a custom ModelForm
to create an article, whenever I use this form, I pass in a article
example so that I can set myself a writer:
article = article (author = req.user) form =
?example
/article
from inside How can I use the form inside? .ave ()
Should I know something else while writing this method? Or does it just need to return aarticle
and it's too much?
I think the answer I'm looking for is:
article = super .ave (commit = false)
Comments
Post a Comment