django-extensions/django-extensions — pull request #239 by twigs (2012-09-19 10:35:29+00:00)
Title: Ouput redirection for dumpscript

Django custom management commands usually offer a method to redirect the output of the command, when calling it using *call_command*.

This did not work for *dumpscript *, because it was using print and sys.stderr instead of the stdout and stderr properties provided by Django's *BaseCommand* class.

This patch corrects that and adds some basic tests to check if the redirection is working