- `%(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.
--
Ticket URL: <https://code.djangoproject.com/ticket/30397>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => Can Sarıgöl
* status: new => assigned
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/11279 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/30397#comment:1>
* needs_better_patch: 0 => 1
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/30397#comment:2>
* needs_better_patch: 1 => 0
* needs_tests: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/30397#comment:3>
* needs_better_patch: 0 => 1
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/30397#comment:4>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/30397#comment:5>
* needs_tests: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/30397#comment:6>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/30397#comment:7>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/30397#comment:8>
* needs_better_patch: 0 => 1
Comment:
OK, as per discussion on the PR, this is blocked pending a couple of
refactorings. Mainly #30613. Let's review again after that.
--
Ticket URL: <https://code.djangoproject.com/ticket/30397#comment:9>
* needs_better_patch: 1 => 0
Comment:
#30613 has been merged. I guess that this pr is available to review again.
--
Ticket URL: <https://code.djangoproject.com/ticket/30397#comment:10>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"febe136d4c3310ec8901abecca3ea5ba2be3952c" febe136d]:
{{{
#!CommitTicketReference repository=""
revision="febe136d4c3310ec8901abecca3ea5ba2be3952c"
Fixed #30397 -- Added app_label/class interpolation for names of indexes
and constraints.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30397#comment:11>