From ae2a7da86bf841d42be86dea3effb0261187c950 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Tue, 17 May 2016 09:52:01 +0300 Subject: Fixed #20468 -- Added loaddata --exclude option. Thanks Alex Morozov for the initial patch. --- docs/ref/django-admin.txt | 8 ++++++++ docs/releases/1.11.txt | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 12c43f3dab..2ecf082575 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -416,6 +416,14 @@ originally generated. Specifies a single app to look for fixtures in rather than looking in all apps. +.. django-admin-option:: --exclude EXCLUDE, -e EXCLUDE + +.. versionadded:: 1.11 + +Excludes loading the fixtures from the given applications and/or models (in the +form of ``app_label`` or ``app_label.ModelName``). Use the option multiple +times to exclude more than one app or model. + What's a "fixture"? ~~~~~~~~~~~~~~~~~~~ diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt index e8cf5ae0f3..ed4620ec44 100644 --- a/docs/releases/1.11.txt +++ b/docs/releases/1.11.txt @@ -169,7 +169,8 @@ Internationalization Management Commands ~~~~~~~~~~~~~~~~~~~ -* ... +* The new :option:`loaddata --exclude` option allows excluding models and apps + while loading data from fixtures. Migrations ~~~~~~~~~~ -- cgit v1.3