Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#9884 closed (fixed)

Incorrect template code in model formset documentation

Reported by: Brad Montgomery Owned by: nobody
Component: Documentation Version: master
Severity: Keywords: model formset template
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Under the section USING THE FORMSET IN THE TEMPLATE, there are several errors in the template code. The attached diff file addresses the following issues:

  • In the Modelforms Documentation template sample code:
    • replaced references to formset.formset with formset.forms
  • In the template example code to manually render each field:
    • fixed a typo in the template code sample
    • replaced sample rendering just the field with code to render field labels, the field, and its help_text

Attachments (2)

modelforms.diff (385 bytes) - added by Brad Montgomery 8 years ago.
modelforms.2.diff (900 bytes) - added by Brad Montgomery 8 years ago.
correct diff file (from svn diff) please disregard previous file

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by Brad Montgomery

Attachment: modelforms.diff added

Changed 8 years ago by Brad Montgomery

Attachment: modelforms.2.diff added

correct diff file (from svn diff) please disregard previous file

comment:1 Changed 8 years ago by Gary Wilson

Resolution: fixed
Status: newclosed

(In [9676]) Fixed #9884 -- Corrected template example in model forms documentation, thanks bradmontgomery.

comment:2 Changed 8 years ago by Gary Wilson

(In [9677]) [1.0.X] Fixed #9884 -- Corrected template example in model forms documentation, thanks bradmontgomery.

Backport of r9676 from trunk.

comment:3 Changed 8 years ago by (none)

milestone: post-1.0

Milestone post-1.0 deleted

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