Opened 13 years ago

Closed 13 years ago

Last modified 13 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 13 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 by Julien Phalip, 13 years ago

Triage Stage: UnreviewedReady for checkin

comment:2 by Julien Phalip, 13 years ago

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