Loading docs/ref/migration-operations.txt +1 −1 Original line number Diff line number Diff line Loading @@ -239,7 +239,7 @@ set ``atomic=False``. .. warning:: RunPython does not magically alter the connection of the models for you; ``RunPython`` does not magically alter the connection of the models for you; any model methods you call will go to the default database unless you give them the current database alias (available from ``schema_editor.connection.alias``, where ``schema_editor`` is the second Loading docs/ref/settings.txt +9 −6 Original line number Diff line number Diff line Loading @@ -2083,17 +2083,19 @@ The name of the class to use for starting the test suite. See TEST_NON_SERIALIZED_APPS ------------------------ .. versionadded:: 1.7 Default: ``[]`` In order to restore the database state between tests for TransactionTestCases and database backends without transactions, Django will :ref:`serialize the contents of all apps with migrations <test-case-serialized-rollback>` when it starts the test run so it can then reload from that copy before tests that need it. In order to restore the database state between tests for ``TransactionTestCase``\s and database backends without transactions, Django will :ref:`serialize the contents of all apps with migrations <test-case-serialized-rollback>` when it starts the test run so it can then reload from that copy before tests that need it. This slows down the startup time of the test runner; if you have apps that you know don't need this feature, you can add their full names in here (e.g. ``django.contrib.contenttypes``) to exclude them from this serialization ``'django.contrib.contenttypes'``) to exclude them from this serialization process. .. setting:: THOUSAND_SEPARATOR Loading Loading @@ -3001,6 +3003,7 @@ Templates Testing ------- * Database: :setting:`TEST <DATABASE-TEST>` * :setting:`TEST_NON_SERIALIZED_APPS` * :setting:`TEST_RUNNER` URLs Loading docs/releases/1.7.txt +3 −2 Original line number Diff line number Diff line Loading @@ -63,9 +63,10 @@ but a few of the key features are: * ``initial_data`` fixtures are no longer loaded for apps with migrations; if you want to load initial data for an app, we suggest you do it in a migration. * Test rollback behaviour is different for apps with migrations; in particular, * Test rollback behavior is different for apps with migrations; in particular, Django will no longer emulate rollbacks on non-transactional databases or inside ``TransactionTestCase`` :ref:`unless specifically asked <test-case-serialized-rollback>`. inside ``TransactionTestCase`` :ref:`unless specifically requested <test-case-serialized-rollback>`. App-loading refactor ~~~~~~~~~~~~~~~~~~~~ Loading docs/spelling_wordlist +2 −0 Original line number Diff line number Diff line Loading @@ -637,6 +637,8 @@ ubuntu Ubuntuusers ul umask unassigning unapplied unapply unapplying uncheck Loading docs/topics/testing/advanced.txt +1 −1 Original line number Diff line number Diff line Loading @@ -505,7 +505,7 @@ can be useful during testing. in-memory JSON string before running tests (used to restore the database state between tests if you don't have transactions). You can set this to False to significantly speed up creation time if you know you don't need data persistance outside of test fixtures. data persistence outside of test fixtures. ``keepdb`` determines if the test run should use an existing database, or create a new one. If ``True``, the existing Loading Loading
docs/ref/migration-operations.txt +1 −1 Original line number Diff line number Diff line Loading @@ -239,7 +239,7 @@ set ``atomic=False``. .. warning:: RunPython does not magically alter the connection of the models for you; ``RunPython`` does not magically alter the connection of the models for you; any model methods you call will go to the default database unless you give them the current database alias (available from ``schema_editor.connection.alias``, where ``schema_editor`` is the second Loading
docs/ref/settings.txt +9 −6 Original line number Diff line number Diff line Loading @@ -2083,17 +2083,19 @@ The name of the class to use for starting the test suite. See TEST_NON_SERIALIZED_APPS ------------------------ .. versionadded:: 1.7 Default: ``[]`` In order to restore the database state between tests for TransactionTestCases and database backends without transactions, Django will :ref:`serialize the contents of all apps with migrations <test-case-serialized-rollback>` when it starts the test run so it can then reload from that copy before tests that need it. In order to restore the database state between tests for ``TransactionTestCase``\s and database backends without transactions, Django will :ref:`serialize the contents of all apps with migrations <test-case-serialized-rollback>` when it starts the test run so it can then reload from that copy before tests that need it. This slows down the startup time of the test runner; if you have apps that you know don't need this feature, you can add their full names in here (e.g. ``django.contrib.contenttypes``) to exclude them from this serialization ``'django.contrib.contenttypes'``) to exclude them from this serialization process. .. setting:: THOUSAND_SEPARATOR Loading Loading @@ -3001,6 +3003,7 @@ Templates Testing ------- * Database: :setting:`TEST <DATABASE-TEST>` * :setting:`TEST_NON_SERIALIZED_APPS` * :setting:`TEST_RUNNER` URLs Loading
docs/releases/1.7.txt +3 −2 Original line number Diff line number Diff line Loading @@ -63,9 +63,10 @@ but a few of the key features are: * ``initial_data`` fixtures are no longer loaded for apps with migrations; if you want to load initial data for an app, we suggest you do it in a migration. * Test rollback behaviour is different for apps with migrations; in particular, * Test rollback behavior is different for apps with migrations; in particular, Django will no longer emulate rollbacks on non-transactional databases or inside ``TransactionTestCase`` :ref:`unless specifically asked <test-case-serialized-rollback>`. inside ``TransactionTestCase`` :ref:`unless specifically requested <test-case-serialized-rollback>`. App-loading refactor ~~~~~~~~~~~~~~~~~~~~ Loading
docs/spelling_wordlist +2 −0 Original line number Diff line number Diff line Loading @@ -637,6 +637,8 @@ ubuntu Ubuntuusers ul umask unassigning unapplied unapply unapplying uncheck Loading
docs/topics/testing/advanced.txt +1 −1 Original line number Diff line number Diff line Loading @@ -505,7 +505,7 @@ can be useful during testing. in-memory JSON string before running tests (used to restore the database state between tests if you don't have transactions). You can set this to False to significantly speed up creation time if you know you don't need data persistance outside of test fixtures. data persistence outside of test fixtures. ``keepdb`` determines if the test run should use an existing database, or create a new one. If ``True``, the existing Loading