diff options
| author | Markus Holtermann <info@markusholtermann.eu> | 2015-09-12 10:23:10 +1000 |
|---|---|---|
| committer | Markus Holtermann <info@markusholtermann.eu> | 2015-09-12 10:38:15 +1000 |
| commit | a3c01b0dd8060f00a5ffd2589a776b4f618af6d9 (patch) | |
| tree | f0faffd7829ba92f204e775f4a11e974191a34b0 /docs | |
| parent | ec704371e301c5450dd5fc012a30424a8f47b99b (diff) | |
Fixed #24919 -- Allowed disabling of migrations on a per app basis
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/settings.txt | 9 | ||||
| -rw-r--r-- | docs/releases/1.9.txt | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index f4e5c37d76..631c47698f 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -1862,6 +1862,15 @@ In this case, migrations pertaining to the ``blog`` app will be contained in the If you provide the ``app_label`` argument, :djadmin:`makemigrations` will automatically create the package if it doesn't already exist. +.. versionadded:: 1.9 + +When you supply ``None`` as a value for an app, Django will consider the app as +an app without migrations regardless of an existing ``migrations`` submodule. +This can be used, for example, in a test settings file to skip migrations while +testing (tables will still be created for the apps' models). If this is used in +your general project settings, remember to use the migrate +:djadminopt:`--run-syncdb` option if you want to create tables for the app. + .. setting:: MONTH_DAY_FORMAT MONTH_DAY_FORMAT diff --git a/docs/releases/1.9.txt b/docs/releases/1.9.txt index 463ef62688..73b2cffb8c 100644 --- a/docs/releases/1.9.txt +++ b/docs/releases/1.9.txt @@ -446,6 +446,9 @@ Migrations * Added support for serialization of ``functools.partial`` objects. +* When supplying ``None`` as a value in :setting:`MIGRATION_MODULES`, Django + will consider the app an app without migrations. + Models ^^^^^^ |
