diff options
Diffstat (limited to 'django/core/management/commands/dumpdata.py')
| -rw-r--r-- | django/core/management/commands/dumpdata.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/core/management/commands/dumpdata.py b/django/core/management/commands/dumpdata.py index 5a9ab83919..15e615c1d0 100644 --- a/django/core/management/commands/dumpdata.py +++ b/django/core/management/commands/dumpdata.py @@ -229,7 +229,8 @@ class Command(BaseCommand): self.stdout.ending = None progress_output = None object_count = 0 - # If dumpdata is outputting to stdout, there is no way to display progress + # If dumpdata is outputting to stdout, there is no way to display + # progress if output and self.stdout.isatty() and options["verbosity"] > 0: progress_output = self.stdout object_count = sum(get_objects(count_only=True)) |
