#36668: ModelForm validation skips UniqueConstraint if its condition refers to a
field not present on the form
-------------------------------------+-------------------------------------
     Reporter:  Baptiste Mispelon    |                    Owner:  (none)
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  5.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  invalid
     Keywords:                       |             Triage Stage:
  modelform,constraint,uniqueconstraint|  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

 * resolution:   => invalid
 * status:  new => closed

Comment:

 Happy to look at a documentation improvement here -- the closest thing I
 could find was (emphasis added):

 > You should only need to call a model’s full_clean() method if you plan
 to handle validation errors yourself, **or if you have excluded fields
 from the ModelForm that require validation**.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36668#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 visit 
https://groups.google.com/d/msgid/django-updates/01070199ee207a3f-7c640d51-874b-4a9c-a886-a9c265002b0f-000000%40eu-central-1.amazonses.com.

Reply via email to