#9153: Forms (and formsets) don't always generate valid HTML for hidden fields
-----------------------------+-------------------------------------
Reporter: mtredinnick | Owner: nobody
Type: Bug | Status: closed
Component: Forms | Version: 1.0
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+-------------------------------------
Changes (by timgraham):
* status: new => closed
* resolution: => needsinfo
Comment:
I'm also not sure how to reproduce this. This seems fine:
{{{
>>> from django import forms
>>>
>>> class Foo(forms.Form):
... baz = forms.CharField(widget=forms.HiddenInput)
... bar = forms.CharField(widget=forms.HiddenInput)
...
>>> foo = Foo()
>>> foo.as_p()
'<input id="id_baz" name="baz" type="hidden" /><input id="id_bar"
name="bar" type="hidden" />'
}}}
Maybe things have changed since 7 years ago when the ticket was reported.
--
Ticket URL: <https://code.djangoproject.com/ticket/9153#comment:6>
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/069.aca6cdb3e1d516f6400228abb957781b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.