﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30397	Allow app_label and class to be specified in the name argument for indexes and constraints.	Mariusz Felisiak	Can Sarıgöl	"Allow `%(app_label)s` and `%(class)s` to be specified in `name` argument for `BaseConstraint` (`CheckConstraint`, `UniqueConstraint`) and `Index`:

- `%(class)s` should be replaced by the lowercased name of the child class that the field is used in,
- `'%(app_label)s` should be replaced by the lowercased name of the app the child class is contained within.

This should allow for specifying check constraints and partial indexes (which `name`'s are mandatory) in abstract models.
Based on discussion in #30362."	New feature	closed	Database layer (models, ORM)	dev	Normal	fixed			Accepted	1	0	0	0	0	0
