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 entirely different view). am i right?

and going forward with the Model.save method that is defined on the
page,

my code would look something like

cvdb.save() where cvdb is the model, but I need an instance to pass
into it

because the save method in the cvdb model is defined as :

def save(self, *args, **kwargs):
  super(cvdb, self).save(*args, **kwargs)
  ** save m2m fields **
  super(cvdb, self).save(*args, **kwargs)

so I am not quite clear on how to create that instance to pass in?

thanks for the help  :)

On Apr 20, 12:32 pm, Tom Evans <tevans...@googlemail.com> wrote:
> On Tue, Apr 20, 2010 at 5:28 PM, Daxal <daxal.someone...@gmail.com> 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-obj...
>
> Creating m2m links:http://docs.djangoproject.com/en/1.1/ref/models/relations/
>
> Cheers
>
> Tom
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to