1
0
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:
Jacob Walls
2024-11-24 16:53:39 -05:00
committed by Sarah Boyce
parent c075d4c2c8
commit d345e5b5f8
2 changed files with 37 additions and 6 deletions

View File

@@ -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):