Re: Saving many to many fields

2010-04-20 Thread Daxal
Haha.Sorrry. I was wondering since my form is made up of only manytomany fields it should even be POST request in the first place :S if the user were to see the form again, I want to be able to populate what he selected previously and be able to update it again (which I think should be an entirel

Re: Saving many to many fields

2010-04-20 Thread Tom Evans
On Tue, Apr 20, 2010 at 5:28 PM, Daxal wrote: > Hi guys, > > I am trying to save manytomany fields in the database. > It's customary to ask a question.. Saving models: http://docs.djangoproject.com/en/1.1/ref/models/instances/#saving-objects Creating m2m links: http://docs.djangoproject.com/en/

Saving many to many fields

2010-04-20 Thread Daxal
Hi guys, I am trying to save manytomany fields in the database. -- view --- def cvdetails(request, id): if request.method == 'POST': form = cvdbForm(request.POST) if form.is_valid(): *save functions here* request.flash.notice = "Save successful"