1
0
mirror of https://github.com/django/django.git synced 2024-12-23 17:46:27 +00:00
django/docs/topics
Tommy Beadle d3fdaf907d Fixed #23727 -- Inhibited the post_migrate signal when using serialized_rollback.
When using a TransactionTestCase with serialized_rollback=True,
after creating the database and running its migrations (along with
emitting the post_migrate signal), the contents of the database
are serialized to _test_serialized_contents.

After the first test case, _fixture_teardown() would flush the
tables but then the post_migrate signal would be emitted and new
rows (with new PKs) would be created in the django_content_type
table. Then in any subsequent test cases in a suite,
_fixture_setup() attempts to deserialize the content of
 _test_serialized_contents, but these rows are identical to the
rows already in the database except for their PKs.  This causes an
IntegrityError due to the unique constraint in the
django_content_type table.

This change made it so that in the above scenario the post_migrate
signal is not emitted after flushing the tables, since it will be
repopulated during fixture_setup().
2015-08-24 08:59:20 -04:00
..
_images Optimise the rest of the PNGs in docs 2015-05-29 15:22:40 +10:00
auth Refs #24914 -- Added docs for more auth mixin methods. 2015-08-20 17:57:47 -04:00
class-based-views Used consistent capitalization and hyphenation of "class-based views" in docs. 2015-08-18 19:07:10 -04:00
db Tweak some examples. 2015-08-22 20:25:42 +02:00
forms Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
http Used consistent capitalization and hyphenation of "class-based views" in docs. 2015-08-18 19:07:10 -04:00
i18n Updated Wikipedia links to use https 2015-08-08 12:02:32 +02:00
testing Fixed #23727 -- Inhibited the post_migrate signal when using serialized_rollback. 2015-08-24 08:59:20 -04:00
cache.txt Updated memcached library links to point to PyPI. 2015-08-11 21:20:32 -04:00
checks.txt Fixed #25174 -- Moved some details of CheckMessage to the reference guide. 2015-07-31 08:21:34 -04:00
conditional-view-processing.txt
email.txt Fixed #25159 -- Removed brackets from class/function/method signatures in docs. 2015-07-27 10:32:47 -04:00
external-packages.txt Fixed #23814 -- Documented apps refactored out of Django. 2015-03-25 08:46:23 -04:00
files.txt Fixed #15590 -- Documented how the path of a FileField can be changed. 2015-03-30 10:38:30 -04:00
index.txt Fixed #23814 -- Documented apps refactored out of Django. 2015-03-25 08:46:23 -04:00
install.txt Updated various links in docs 2015-08-08 13:57:15 +02:00
logging.txt Fixed #24526 -- Combined django.request/security loggers with the root logger. 2015-04-24 11:07:42 -04:00
migrations.txt Fixed #25185 -- Added support for functools.partial serialization in migrations 2015-07-29 10:15:50 -04:00
pagination.txt Fixed #23190 -- Made Paginator.page_range an iterator 2015-07-03 11:34:34 -04:00
performance.txt
python3.txt Updated various links in docs 2015-08-08 13:57:15 +02:00
security.txt Updated various links in docs 2015-08-08 13:57:15 +02:00
serialization.txt Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
settings.txt Fixed #25156 -- Mentioned django.setup() in the settings overview for standalone Django use. 2015-07-21 17:10:17 -04:00
signals.txt Fixed #25159 -- Removed brackets from class/function/method signatures in docs. 2015-07-27 10:32:47 -04:00
signing.txt
templates.txt Fixed #25159 -- Removed brackets from class/function/method signatures in docs. 2015-07-27 10:32:47 -04:00