#21894: Error in example code in django.forms.Form.clean()¶
-----------------------------------+--------------------
     Reporter:  richard.kellner@…  |      Owner:  nobody
         Type:  Bug                |     Status:  new
    Component:  Documentation      |    Version:  master
     Severity:  Normal             |   Keywords:
 Triage Stage:  Unreviewed         |  Has patch:  0
Easy pickings:  0                  |      UI/UX:  0
-----------------------------------+--------------------
 In Documentation version: development explanation of Cleaning and
 validating fields
 (https://docs.djangoproject.com/en/dev/ref/forms/validation/#cleaning-and-
 validating-fields-that-depend-on-each-other) that depend on each other
 there is and error. Code in the sample would thow an exeptoion: TypeError:
 argument of type 'NoneType' is not iterable because function does not
 return anything back. Documentation in 1.6 is correct and does not have
 this error. To resolve add return statement at the end of both function in
 example:

 {{{
 # Always return the full collection of cleaned data.
 return cleaned_data
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21894>
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/071.2ae9cf59ceccb98bde5714ec6dc6a228%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to