#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 , 8 weeks ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:2 by , 8 weeks ago
Has patch: | set |
---|
comment:3 by , 8 weeks ago
comment:4 by , 8 weeks ago
Summary: | Example of an invalid call in as_table. → Example of an invalid call in as_table in form docs. |
---|---|
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → Cleanup/optimization |
I think this probably doesn't need a ticket but accepting :)
comment:5 by , 8 weeks ago
Patch needs improvement: | set |
---|
comment:6 by , 8 weeks ago
Patch needs improvement: | unset |
---|
comment:7 by , 8 weeks ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:8 by , 8 weeks ago
Triage Stage: | Ready for checkin → Accepted |
---|
On going discussion on the pull request
comment:9 by , 8 weeks ago
Patch needs improvement: | set |
---|
comment:10 by , 8 weeks ago
Patch needs improvement: | unset |
---|
comment:11 by , 8 weeks ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
PR