#36273: Move Index system checks from Model to Index.check()
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Type:
| Cleanup/optimization
Status: new | Component: Core
| (System checks)
Version: dev | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
In #30613 (53209f78302a639032afabf5326d28d4ddd9d03c), some Index
validation was moved from `Index.__init__()` to `Model.check()`. This
prevents `Index` subclasses from customizing or extending the validation.
The logic should be in `Index.check()`, following the pattern of fields,
constraints, etc.
--
Ticket URL: <https://code.djangoproject.com/ticket/36273>
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/01070195c08f3d7a-03bd36e3-5135-4b70-bc02-74a97b504271-000000%40eu-central-1.amazonses.com.