#30613: Move index name checks from Index.__init__ into system checks.
-------------------------------------+-------------------------------------
     Reporter:  Can Sarıgöl          |                    Owner:  Can
         Type:                       |  Sarıgöl
  Cleanup/optimization               |                   Status:  closed
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Tim Graham):

 I'm not sure that moving this validation was appropriate.
 `Index.__init__()` does
 
[https://github.com/django/django/blob/1831f7733d3ef03d1ca7fac3e8d9f4c5e3e3375e/django/db/models/indexes.py#L29-L64
 a lot argument validation] and I don't see a reason why the validation of
 `name` should be treated differently. See ticket:36273#comment:7.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/30613#comment:4>
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/0107019650b22bfa-6b5a15fd-2790-436e-8447-8adb44ed707d-000000%40eu-central-1.amazonses.com.

Reply via email to