#16328: FilePathField should include blank option even when required=False
------------------------+----------------------------
 Reporter:  ringemup@…  |          Owner:  nobody
     Type:  Bug         |         Status:  new
Milestone:              |      Component:  Forms
  Version:  1.3         |       Severity:  Normal
 Keywords:              |   Triage Stage:  Unreviewed
Has patch:  0           |  Easy pickings:  1
    UI/UX:  1           |
------------------------+----------------------------
 Because there is no blank option in FilePathField form fields when
 required=True, it is not possible to save an admin form with blank inlines
 that contain FilePathFields.  Since an empty-string option does not pass
 the required=True validator, the simplest fix is simply to include a
 ('','----------') option as the first choice for the field, just as with
 other ChoiceFields.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16328>
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 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-updates?hl=en.

Reply via email to