Ticket #19115: 19115.2.patch

File 19115.2.patch, 684 bytes (added by d1ffuz0r, 3 years ago)
  • docs/ref/django-admin.txt

    diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
    index e0b0845..f942b23 100644
    a b a natural key definition. If you are dumping ``contrib.auth`` ``Permission`` 
    212212objects or ``contrib.contenttypes`` ``ContentType`` objects, you should
    213213probably be using this flag.
    214214
     215Also, ``dumpdata`` command support saving output to named file. You can do
     216it through calling  function ``'django.core.management.call_command'``::
     217
     218    from django.core import management
     219
     220    with open('/tmp/dumpdata_command_output') as f:
     221        management.call_command('dumpdata', stdout=f)
     222
    215223flush
    216224-----
    217225
Back to Top