#23286: Add the necessary return value for Form#clean (in 1.6) -------------------------------------+------------------------------------- Reporter: jameydeorio | Owner: nobody Type: | Status: new Cleanup/optimization | Version: 1.6 Component: Documentation | Resolution: Severity: Normal | Triage Stage: Keywords: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by bmispelon):
* needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Comment: Hi, In the link you provided, the example code has these two lines at the bottom: {{{#!python # Always return the full collection of cleaned data. return cleaned_data }}} Is that not sufficient? Note that if you're reading the documentation for 1.7 [1], these lines are gone because it's not necessary to return `cleaned_data` from `Form.clean()` anymore. Was that the source of the confusion? [1] https://docs.djangoproject.com/en/1.7/ref/forms/validation/#cleaning- and-validating-fields-that-depend-on-each-other -- Ticket URL: <https://code.djangoproject.com/ticket/23286#comment:1> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/069.6f7bf275da5a2a99a441701c1a3fb830%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.