Re: ModelMultipleChoiceField doesn't do initial selection

2007-08-02 Thread Kai Kuehne
Forgot something: I could print the form manually and not use form.as_table(). So I can left out the fields I don't want. I think this is ok in this case. Thanks! Kai --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: ModelMultipleChoiceField doesn't do initial selection

2007-08-02 Thread Kai Kuehne
Hi Lucky, On 8/2/07, Lucky B <[EMAIL PROTECTED]> wrote: > > I think you should be using form_for_instance on the dvd instance > instead of the generic form contructor. > http://www.djangoproject.com/documentation/newforms/#form-for-instance This works, and this is the way I had it first. But I d

Re: ModelMultipleChoiceField doesn't do initial selection

2007-08-02 Thread Lucky B
I think you should be using form_for_instance on the dvd instance instead of the generic form contructor. http://www.djangoproject.com/documentation/newforms/#form-for-instance On Aug 2, 11:14 am, "Kai Kuehne" <[EMAIL PROTECTED]> wrote: > No ideas anyone? :-/ --~--~-~--~~---

Re: ModelMultipleChoiceField doesn't do initial selection

2007-08-02 Thread Kai Kuehne
No ideas anyone? :-/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTE

ModelMultipleChoiceField doesn't do initial selection

2007-07-31 Thread Kai Kuehne
Hi list, sorry for bugging you again but I cannot solve this problem. In my applications I have a model DVD and a model Genre related via a ManyToMany field. The problem is that the edit form doesn't show the selected genres already assigned to a DVD instance. The form looks like: class DVDForm(f