#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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070192d61d8e89-20559d61-ac95-41f2-a228-479b5bd9b992-000000%40eu-central-1.amazonses.com.

Reply via email to