#34149: Postgres "ExclusionConstraint with conditions cannot be deferred." seems
wrong
----------------------------------+------------------------------------
     Reporter:  Márton Salomváry  |                    Owner:  (none)
         Type:  Bug               |                   Status:  new
    Component:  contrib.postgres  |                  Version:  4.1
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Accepted
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+------------------------------------
Changes (by Simon Charette):

 * stage:  Unreviewed => Accepted


Comment:

 I think this is effectively a bug due to copy-pasting.

 Django implements partial unique constraints using partial unique indices
 which
 
[https://github.com/django/django/blob/35911078fa40eb35859832987fedada76963c01e/django/db/models/constraints.py#L153-L160
 lack support for the constraint specific options].

 Exclusion constraint use proper `CONSTRAINT` syntax so I don't see why
 they couldn't support deferral specifiers.

 Would you be willing to submit a patch to correct the issue?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34149#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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701845f69616a-69af6593-4ea3-435d-b254-536708fbf7ba-000000%40eu-central-1.amazonses.com.

Reply via email to