diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index e0b0845..9417197 100644
a
|
b
|
a natural key definition. If you are dumping ``contrib.auth`` ``Permission``
|
212 | 212 | objects or ``contrib.contenttypes`` ``ContentType`` objects, you should |
213 | 213 | probably be using this flag. |
214 | 214 | |
| 215 | Also, ``dumpdata`` command support saving output to named file. See |
| 216 | :func:`django.core.management.call_command`. |
| 217 | |
215 | 218 | flush |
216 | 219 | ----- |
217 | 220 | |
… |
… |
To call a management command from code use ``call_command``.
|
1458 | 1461 | ``name`` |
1459 | 1462 | the name of the command to call. |
1460 | 1463 | |
| 1464 | ``stdout`` |
| 1465 | output redirection to file-like object. |
| 1466 | |
1461 | 1467 | ``*args`` |
1462 | 1468 | a list of arguments accepted by the command. |
1463 | 1469 | |
… |
… |
Examples::
|
1469 | 1475 | from django.core import management |
1470 | 1476 | management.call_command('flush', verbosity=0, interactive=False) |
1471 | 1477 | management.call_command('loaddata', 'test_data', verbosity=0) |
| 1478 | |
| 1479 | with open('/tmp/command_output') as f: |
| 1480 | management.call_command('dumpdata', stdout=f) |