#27642: Make `forms.utils.flatatt` not add values which are `None` to attrs
------------------------------------------+-------------------------
Reporter: Illia Volochii | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version:
Severity: Normal | Keywords: flatatt
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------+-------------------------
When a person adds arguments like
{{{
{'id': None, 'class': 'smth'}
}}}
to an `<input>` tag, it turns into
{{{
<input ... id="None" class="smth">
}}}
----
I think, it is not what the person expects to see.
----
[https://github.com/django/django/pull/7743 Pull request]
--
Ticket URL: <https://code.djangoproject.com/ticket/27642>
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/050.d47e881c37f85282d5fb3df316757f43%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.