#20649: unable to override the blank option '--------' in django admin in
charfield
with choices
-------------------------------+--------------------
Reporter: brillgen | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.5
Severity: Normal | Keywords: admin
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
CHAR_FIELD_CHOICES = (('', "Empty Choice"), ('S', "Non Empty Choice"))
char_field = models.CharField(blank=True, default='', max_length=1,
choices=CHAR_FIELD_CHOICES)
Expected:
<select id="id_char_field" name="char_field">
<option value="" selected="selected">Confirmed</option>
<option value="P">Provisional</option>
</select>
Actual Output:
<select id="id_category" name="category">
<option value="" selected="selected">---------</option>
<option value="">Confirmed</option>
<option value="P">Provisional</option>
</select>
--
Ticket URL: <https://code.djangoproject.com/ticket/20649>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.7aa3f8231a929af8ab9262cf38993860%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.