#30581: Allow constraints to be used for validation (in Python)
-------------------------------------+-------------------------------------
     Reporter:  Carlton Gibson       |                    Owner:  Sanskar
                                     |  Jaiswal
         Type:  New feature          |                   Status:  assigned
    Component:  Database layer       |                  Version:  2.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  constraints,         |             Triage Stage:  Accepted
  validation                         |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Sanskar Jaiswal):

 I have gone through the issue and the related source code. I think I have
 a fair idea of what's causing the issue. What I dont understand is that
 what this ticket aims to achieve. Is there supposed to be a solution, to
 raise an error upon `CheckConstraint`? Or is it supposed to be a custom
 validation method in `BaseConstraint`, which lets users help define custom
 validation? What exactly is the `Constraint.enforce` method supposed to
 do? It would be nice if I could get a bit more help with some examples. I
 am sorry, that I am having hard time understanding this, as I am a
 beginner.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30581#comment:9>
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/071.151e33f63621215704674eefa565a83c%40djangoproject.com.

Reply via email to