Keep option to output to stdout.

parent acd4f04b
......@@ -74,9 +74,12 @@ class Command(DumpDataCommand):
# Override default options.
# if no output specified use default file
if not options['output']:
options["output"] = filename
# allow to output to stdout to enable gzip compression if needed
if options['output'] == '-':
options['output'] = None
# unless specified on the commandline, use default set of apps to export
if not app_labels:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment