#35935: sqlmigrate prevents normal colorization of system checks
-------------------------------------+-------------------------------------
Reporter: Jacob Walls | Owner: Jacob
Type: | Walls
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: no_color | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):
* needs_tests: 0 => 1
* stage: Unreviewed => Accepted
Comment:
Thank you Jacob, was able to reproduce adding something like this to an
existing model (an FK with `unique=True`):
{{{#!python
user = models.ForeignKey("auth.User", unique=True,
on_delete=models.CASCADE)
}}}
For the PR, do you think you could also provide a regression test where
there is actually a warning system check emitted and then an assert that
the system check is indeed colorized with your changes?
--
Ticket URL: <
https://code.djangoproject.com/ticket/35935#comment:1>