Opened 4 weeks ago

Closed 4 weeks ago

Last modified 4 weeks ago

#35873 closed Cleanup/optimization (fixed)

Example of an invalid call in as_table in form docs.

Reported by: Antoliny Owned by: Antoliny
Component: Documentation Version: 5.0
Severity: Normal Keywords: Forms API Document
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The Django Forms API document has an invalid example for calling as_table.
Examples of as_div, as_p, and as_ul calls show the appropriate calls and results with print(f.as _xx()) but as_table is print(f), probably a typo of print(f.as_table()).
as_div example -> print(f.as_div())
as_p example -> print(f.as_p())
as_ul example -> print(f.as_ul())
as_table example -> print(f)

Change History (13)

comment:1 by Antoliny, 4 weeks ago

Owner: set to Antoliny
Status: newassigned

comment:2 by Antoliny, 4 weeks ago

Has patch: set

comment:3 by Antoliny, 4 weeks ago

comment:4 by Sarah Boyce, 4 weeks ago

Summary: Example of an invalid call in as_table.Example of an invalid call in as_table in form docs.
Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

I think this probably doesn't need a ticket but accepting :)

comment:5 by Antoliny, 4 weeks ago

Patch needs improvement: set

comment:6 by Antoliny, 4 weeks ago

Patch needs improvement: unset

comment:7 by Sarah Boyce, 4 weeks ago

Triage Stage: AcceptedReady for checkin

comment:8 by Sarah Boyce, 4 weeks ago

Triage Stage: Ready for checkinAccepted

On going discussion on the pull request

Last edited 4 weeks ago by Sarah Boyce (previous) (diff)

comment:9 by Sarah Boyce, 4 weeks ago

Patch needs improvement: set

comment:10 by Antoliny, 4 weeks ago

Patch needs improvement: unset

comment:11 by Sarah Boyce, 4 weeks ago

Triage Stage: AcceptedReady for checkin

comment:12 by Sarah Boyce <42296566+sarahboyce@…>, 4 weeks ago

Resolution: fixed
Status: assignedclosed

In 8f3dee1d:

Fixed #35873 -- Corrected Form.as_table() call in form docs.

comment:13 by Sarah Boyce <42296566+sarahboyce@…>, 4 weeks ago

In 4915feaa:

[5.1.x] Fixed #35873 -- Corrected Form.as_table() call in form docs.

Backport of 8f3dee1dfdc4242348c6cd6ead1c359cda78c2b5 from main.

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