[Django] #35873: Example of an invalid call in as_table.
7 views
Skip to first unread message
Django
unread,
Oct 28, 2024, 10:32:00 PM10/28/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#35873: Example of an invalid call in as_table.
-------------------------------------+-------------------------------------
Reporter: Antoliny | Type:
| Uncategorized
Status: new | Component:
| Documentation
Version: 5.0 | Severity: Normal
Keywords: Forms API Document | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
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()).
[https://docs.djangoproject.com/en/5.1/ref/forms/api/#as-div as_div
example -> print(f.as_div())]
[https://docs.djangoproject.com/en/5.1/ref/forms/api/#as-p as_p example ->
print(f.as_p())]
[https://docs.djangoproject.com/en/5.1/ref/forms/api/#as-ul as_ul example
-> print(f.as_ul())]
[https://docs.djangoproject.com/en/5.1/ref/forms/api/#as-table as_table
example -> print(f)]
--
Ticket URL: <https://code.djangoproject.com/ticket/35873>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Django
unread,
Oct 28, 2024, 10:32:14 PM10/28/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message