#20703: Why django form.as_p call form.clean method when template renders?
-------------------------------------+-------------------------------------
     Reporter:  max.kharandziuk@…    |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  closed
    Component:  Template system      |                  Version:  1.5
     Severity:  Normal               |               Resolution:  invalid
     Keywords:  as_p clean           |             Triage Stage:
  templates                          |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by timo):

 `as_p` will output error rows (if any) as well as non-field errors.
 Naturally, this requires calling `clean`. Since you are passing data to
 the form on `GET`, the form is validated and `clean` is called.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20703#comment:3>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/083.5377b368b1e5e47baec7fbbc1a4cc65d%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to