#26259: Form.cleaned_data should be a property
-------------------------------+--------------------
Reporter: guettli | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
We stumbled over this code:
{{{
form.is_valid()
if form.cleaned_data.get('cancel'):
...
}}}
We did not understand why `form.is_valid()` is necessary.
It seems that `form.cleaned_data` is not a property, you need to call
`is_valid()` first.
It would be nice if `Form.cleaned_data` is be a property, this way the
following code would just work:
{{{
if form.cleaned_data.get('cancel'):
...
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26259>
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/050.36e28f6c0ffe1951bdd58cb9e91c02fa%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.