Fixed #32094 -- Fixed flush() calls on management command self.stdout/err proxies.

This commit is contained in:
Thomas Riccardi 2020-10-08 20:41:22 +02:00 committed by Mariusz Felisiak
parent b7da588e88
commit f1f24539d8
3 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,8 @@
from django.core.management.base import BaseCommand
class Command(BaseCommand):
def handle(self, **options):
self.stdout.write('Working...')
self.stdout.flush()
self.stdout.write('OK')