Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#16815 closed Bug (fixed)

Broken example code -- hidden fields won't show if there aren't visible fields.

Reported by: anonymous Owned by: nobody
Component: Documentation Version: 1.1
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

See https://docs.djangoproject.com/en/dev/topics/forms/#looping-over-hidden-and-visible-fields. The solution would be to put the for loop for hidden fields outside of the for loop for visible fields. This is a bug since 1.1 documentation.

Attachments (1)

16815-looping_hidden_fields_docs.patch (892 bytes) - added by joonas 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by joonas

comment:1 Changed 5 years ago by Julien Phalip

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedReady for checkin

comment:2 Changed 5 years ago by Julien Phalip

Resolution: fixed
Status: newclosed

In [16823]:

Fixed #16815 -- Rectified the code example for hidden_fields and visible_fields in the forms documentation. Thanks, joonas.

Note: See TracTickets for help on using tickets.
Back to Top