Re: Discrepancy involving choices with ModelForm and Form

2012-02-22 Thread Łukasz Rekucki
On 22 February 2012 08:43, Stuart Laughlin wrote: > Carl -- > > Thanks for the feedback! > > On Feb 21, 7:47 pm, Carl Meyer wrote: >> >> It's >> important that you can get full control at some level - if a blank >> option were automatically added to ChoiceFields, how would you propose >> that a d

Re: Discrepancy involving choices with ModelForm and Form

2012-02-21 Thread Stuart Laughlin
Carl -- Thanks for the feedback! On Feb 21, 7:47 pm, Carl Meyer wrote: > > It's > important that you can get full control at some level - if a blank > option were automatically added to ChoiceFields, how would you propose > that a developer remove it if they didn't want it? > I would propose...

Re: Discrepancy involving choices with ModelForm and Form

2012-02-21 Thread Carl Meyer
Hi Stuart, On 02/21/2012 05:29 PM, Stuart Laughlin wrote: > It seems to me there is a discrepancy between ModelForm and Form when > it comes to fields with choices. When I create a ModelForm from a > model having a CharField with choices set, the resultant form contains > a select with a blank cho

Discrepancy involving choices with ModelForm and Form

2012-02-21 Thread Stuart Laughlin
Greetings Everyone -- It seems to me there is a discrepancy between ModelForm and Form when it comes to fields with choices. When I create a ModelForm from a model having a CharField with choices set, the resultant form contains a select with a blank choice included by default. On the other hand,