mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #35935 -- Colorized system checks when running sqlmigrate.
This commit is contained in:
@@ -32,10 +32,9 @@ class Command(BaseCommand):
|
||||
)
|
||||
|
||||
def execute(self, *args, **options):
|
||||
# sqlmigrate doesn't support coloring its output but we need to force
|
||||
# no_color=True so that the BEGIN/COMMIT statements added by
|
||||
# output_transaction don't get colored either.
|
||||
options["no_color"] = True
|
||||
# sqlmigrate doesn't support coloring its output, so make the
|
||||
# BEGIN/COMMIT statements added by output_transaction colorless also.
|
||||
self.style.SQL_KEYWORD = lambda noop: noop
|
||||
return super().execute(*args, **options)
|
||||
|
||||
def handle(self, *args, **options):
|
||||
|
||||
Reference in New Issue
Block a user