[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
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
to django-...@googlegroups.com
#35873: Example of an invalid call in as_table.
------------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: Uncategorized | Status: assigned
Component: Documentation | Version: 5.0
Severity: Normal | Resolution:
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
------------------------------------+--------------------------------------
Changes (by Antoliny):

* owner: (none) => Antoliny
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/35873#comment:1>

Django

unread,
Oct 28, 2024, 10:37:46 PM10/28/24
to django-...@googlegroups.com
#35873: Example of an invalid call in as_table.
------------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: Uncategorized | Status: assigned
Component: Documentation | Version: 5.0
Severity: Normal | Resolution:
Keywords: Forms API Document | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------------+--------------------------------------
Changes (by Antoliny):

* has_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35873#comment:2>

Django

unread,
Oct 28, 2024, 10:38:00 PM10/28/24
to django-...@googlegroups.com
#35873: Example of an invalid call in as_table.
------------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: Uncategorized | Status: assigned
Component: Documentation | Version: 5.0
Severity: Normal | Resolution:
Keywords: Forms API Document | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------------+--------------------------------------
Comment (by Antoliny):

[https://github.com/django/django/pull/18737 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/35873#comment:3>
Reply all
Reply to author
Forward
0 new messages