On Jan 31, 3:23 am, "Honza Král" <[EMAIL PROTECTED]> wrote:
> the ticket has been accepted I am only waiting for decision on whether
> to prepend an empty choice ("", "------") or any suggestion on other
> ways of doing that...
In /django/db/models/fields/__init__.py, line 20 there is
# The values to use for "blank" in SelectFields. Will be appended to
the start of most "choices" lists.
BLANK_CHOICE_DASH = [("", "---------")]
BLANK_CHOICE_NONE = [("", "None")]
I would think you could use that to prepend to the choices list.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---