django1/django
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
..
apps Refs #23621 -- Fixed warning message when reloading models. 2015-06-30 15:00:10 -04:00
bin Removed bin/unique-messages.py 2015-02-06 08:47:38 -05:00
conf Updated Wikipedia links to use https 2015-08-08 12:02:32 +02:00
contrib Refs #12400 -- Added supports_geometry_field_unique_index GIS db feature. 2015-08-19 19:02:30 -04:00
core Fixed #25047 -- Improved "Conflicting migrations" error message. 2015-08-24 08:05:21 -04:00
db Fixed #24951 -- Fixed AssertionError in delete queries involving a foreign/primary key. 2015-08-20 08:14:16 -04:00
dispatch Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
forms Removed BaseForm._raw_value(). 2015-08-21 12:14:54 -04:00
http Fixed #25254 -- Added JsonResponse json_dumps_params parameter. 2015-08-12 10:39:07 -04:00
middleware Fixed #24935 -- Refactored common conditional GET handling. 2015-08-15 09:08:45 -04:00
template Fixed #24257 -- Corrected i18n handling of percent signs. 2015-08-12 10:23:34 -04:00
templatetags Fixed #24257 -- Corrected i18n handling of percent signs. 2015-08-12 10:23:34 -04:00
test Fixed #23727 -- Inhibited the post_migrate signal when using serialized_rollback. 2015-08-24 08:59:20 -04:00
utils Fixed #24935 -- Refactored common conditional GET handling. 2015-08-15 09:08:45 -04:00
views Fixed #24935 -- Refactored common conditional GET handling. 2015-08-15 09:08:45 -04:00
__init__.py Bumped version; master is now 1.9 pre-alpha. 2015-01-16 17:04:35 -05:00
shortcuts.py Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00