mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #23663 -- Initialize output streams for BaseCommand in __init__().
This helps with testability of management commands. Thanks to trac username daveoncode for the report and to Tim Graham and Claude Paroz for the reviews.
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = "Test color output"
|
||||
requires_system_checks = False
|
||||
|
||||
def handle(self, **options):
|
||||
return self.style.SQL_KEYWORD('BEGIN')
|
||||
Reference in New Issue
Block a user