From 9c50495464db24eaad30984519ab9e31b5ffb044 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Wed, 11 Jun 2008 14:01:35 +0000 Subject: Fixed #7254 -- Added an '--exclude' option to dumpdata, allowing specific applications to be removed from the dump output. Thanks to Carl Karsten for the idea and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7615 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/django-admin.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs') diff --git a/docs/django-admin.txt b/docs/django-admin.txt index e14737c944..e8e3b54945 100644 --- a/docs/django-admin.txt +++ b/docs/django-admin.txt @@ -164,6 +164,22 @@ dumped. .. _custom manager: ../model-api/#custom-managers +--exclude +~~~~~~~~~ + +**New in Django development version** + +Exclude a specific application from the applications whose contents is +output. For example, to specifically exclude the `auth` application from +the output, you would call:: + + django-admin.py dumpdata --exclude=auth + +If you want to exclude multiple applications, use multiple ``--exclude`` +directives:: + + django-admin.py dumpdata --exclude=auth --exclude=contenttype + --format ~~~~~~~~ -- cgit v1.3