Re: Change null representation when you're using choices widget.

2011-02-04 Thread Marc Aymerich
On Fri, Feb 4, 2011 at 3:37 PM, Marcos Moyano wrote: > Remove (None, "No Period") from your choices and left the required=False on > your form field. That should work. > but I wanted to do was to change the default value of null value: instead of '--' I want to show "No Period". this seems to

Re: Change null representation when you're using choices widget.

2011-02-04 Thread Marcos Moyano
s/left/leave/ sorry fot the double post. On Fri, Feb 4, 2011 at 11:37 AM, Marcos Moyano wrote: > Remove (None, "No Period") from your choices and left the required=False on > your form field. That should work. > > Rgds, > Marcos > > > On Fri, Feb 4, 2011 at 11:31 AM, Marc Aymerich wrote: > >> On

Re: Change null representation when you're using choices widget.

2011-02-04 Thread Marc Aymerich
On Fri, Feb 4, 2011 at 3:31 PM, Marc Aymerich wrote: > On Fri, Feb 4, 2011 at 12:12 PM, Tom Evans wrote: >> On Fri, Feb 4, 2011 at 11:07 AM, Marc Aymerich wrote: >>> Hi >>> In some choices widgets I want to represent null values as u'No >>> period' instead of u'' >>> >>> I try with: >>>

Re: Change null representation when you're using choices widget.

2011-02-04 Thread Marcos Moyano
Remove (None, "No Period") from your choices and left the required=False on your form field. That should work. Rgds, Marcos On Fri, Feb 4, 2011 at 11:31 AM, Marc Aymerich wrote: > On Fri, Feb 4, 2011 at 12:12 PM, Tom Evans > wrote: > > On Fri, Feb 4, 2011 at 11:07 AM, Marc Aymerich > wrote: >

Re: Change null representation when you're using choices widget.

2011-02-04 Thread Marc Aymerich
On Fri, Feb 4, 2011 at 12:12 PM, Tom Evans wrote: > On Fri, Feb 4, 2011 at 11:07 AM, Marc Aymerich wrote: >> Hi >> In some choices widgets I want to represent null values as u'No >> period' instead of u'' >> >> I try with: >> >> PERIOD_CHOICES = getattr(settings, 'PERIOD_CHOICES', >>    

Re: Change null representation when you're using choices widget.

2011-02-04 Thread Tom Evans
On Fri, Feb 4, 2011 at 11:07 AM, Marc Aymerich wrote: > Hi > In some choices widgets I want to represent null values as u'No > period' instead of u'' > > I try with: > > PERIOD_CHOICES = getattr(settings, 'PERIOD_CHOICES', >                                                     ((None, > uge