#27733: ClearableFileInput widget renders incorrectly
-------------------------------------+-------------------------------------
Reporter: Luca De | Owner: nobody
Feo |
Type: Bug | Status: new
Component: Forms | Version: 1.10
Severity: Normal | Keywords: forms widgets file
Triage Stage: | input
Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
The `forms.widgets.ClearableFileInput` widget (used, e.g., by the admin
app) renders as
{{{
<a href="<bound method FieldFile.url of <FieldFile: EXAMPLE>>">EXAMPLE</a>
}}}
with the `href` attribute obviously mis-generated.
Using Django 1.10. This line seems to be the culprit:
https://github.com/django/django/blob/1.10.5/django/forms/widgets.py#L400
--
Ticket URL: <https://code.djangoproject.com/ticket/27733>
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/048.20509a14fc616a797d6c8d1fc297da93%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.