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 a article and it's too much?

I think the answer I'm looking for is:

  article = super .ave (commit = false)  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -