Re: Many2many field and ModelChoiceField

2011-05-09 Thread Roodie
Hello, Thanks, yes, that was my idea when I mentioned manual handling. I just wanted to ask since it is quite common for me to miss a relevant parameter or a small note in the documentation ;-) On máj. 9, 17:21, Shawn Milochik wrote: > You can exclude that field from your ModelForm and manually

Re: Many2many field and ModelChoiceField

2011-05-09 Thread Shawn Milochik
You can exclude that field from your ModelForm and manually add in a new field with just the option(s) you want. Then override the save() of your ModelForm to set the proper value of self.cleaned_data or self.instance to the value from your custom field. -- You received this message because