Friday, February 4, 2011

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

On Fri, Feb 4, 2011 at 3:37 PM, Marcos Moyano <marcosmoyano@gmail.com> 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 work for now: ('', "No Period")

--
Marc

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment