Opened 4 years ago

Closed 4 years ago

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

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by joonas

comment:1 Changed 4 years ago by julien

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 4 years ago by julien

  • Resolution set to fixed
  • Status changed from new to closed

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