#33936: BaseModelForm.save() ValueError lacks useful information
----------------------------+--------------------------------------
Reporter: Josh Moore | Owner: nobody
Type: Bug | Status: closed
Component: Forms | Version: dev
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
----------------------------+--------------------------------------
Changes (by Mariusz Felisiak):
* status: new => closed
* resolution: => duplicate
Comment:
Duplicate of #9605. The
[http://docs.djangoproject.com/en/dev/topics/forms/#using-a-form-in-a-view
normal pattern] is to call `is_valid()` yourself first and not proceed
with an attempt to `save()` if the form hasn't validated.
--
Ticket URL: <https://code.djangoproject.com/ticket/33936#comment:2>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/01070182af1d2a7c-f249e136-222d-4555-b0dd-2ccfac64b4f5-000000%40eu-central-1.amazonses.com.