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
..
2015-07-27 18:28:13 -04:00
2015-08-13 12:34:48 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-08-19 19:58:44 +02:00
2015-08-10 08:51:32 -04:00
2015-07-29 15:09:32 -04:00
2015-07-31 15:03:18 -04:00
2015-07-27 18:28:13 -04:00
2015-08-06 13:52:26 -04:00
2015-08-15 08:23:32 -04:00
2015-07-27 18:28:13 -04:00
2015-06-30 15:00:10 -04:00
2015-08-18 16:22:14 -04:00
2015-08-07 09:33:17 -04:00
2015-08-22 20:25:42 +02:00
2015-07-02 13:53:51 -04:00
2015-08-12 18:00:26 -04:00
2015-08-10 08:51:32 -04:00
2015-07-27 18:28:13 -04:00
2015-07-07 12:03:58 -04:00
2015-07-27 18:28:13 -04:00
2015-08-22 20:25:42 +02:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-08-07 09:33:17 -04:00
2015-08-01 08:38:03 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-06-24 16:08:20 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-21 09:19:40 -04:00
2015-06-24 16:08:20 -04:00
2015-07-20 08:19:47 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-08-15 07:26:44 -04:00
2015-08-22 10:08:59 -04:00
2015-06-17 20:07:00 +02:00
2015-07-27 18:28:13 -04:00
2015-08-10 08:51:32 -04:00
2015-07-27 18:28:13 -04:00
2015-06-24 16:08:20 -04:00
2015-07-27 18:28:13 -04:00
2015-08-19 19:02:30 -04:00
2015-06-17 17:11:50 -04:00
2015-08-12 10:39:07 -04:00
2015-08-12 10:23:34 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-08-12 18:00:26 -04:00
2015-07-27 18:28:13 -04:00
2015-07-13 19:22:39 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-08-22 20:25:42 +02:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-25 07:42:30 -04:00
2015-07-27 18:28:13 -04:00
2015-08-10 08:51:32 -04:00
2015-07-28 09:28:25 +07:00
2015-07-31 12:04:06 -04:00
2015-07-03 12:06:40 -04:00
2015-08-20 14:52:26 -04:00
2015-08-10 08:51:32 -04:00
2015-08-07 07:44:59 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-08-15 19:32:21 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-28 09:28:25 +07:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-08-20 08:14:16 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-03 11:34:34 -04:00
2015-08-15 10:02:08 -04:00
2015-07-27 18:28:13 -04:00
2015-06-18 08:36:50 -04:00
2015-07-27 18:28:13 -04:00
2015-08-17 17:37:07 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-08-04 09:50:57 -04:00
2015-07-31 09:45:03 -04:00
2015-06-24 16:08:20 -04:00
2015-07-15 09:01:25 -04:00
2015-07-27 18:28:13 -04:00
2015-08-08 11:27:06 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-08-01 08:01:24 -04:00
2015-08-20 10:24:19 -04:00
2015-06-24 16:08:20 -04:00
2015-06-24 16:08:20 -04:00
2015-07-07 11:44:37 -04:00
2015-06-24 16:08:20 -04:00
2015-07-27 18:28:13 -04:00
2015-06-18 16:25:32 -04:00
2015-07-06 10:10:40 -04:00
2015-08-22 20:25:42 +02:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-06-24 16:08:20 -04:00
2015-08-12 10:23:34 -04:00
2015-08-11 10:01:24 -04:00
2015-07-31 12:04:06 -04:00
2015-07-27 07:35:23 -04:00
2015-08-24 08:59:20 -04:00
2015-07-27 18:28:13 -04:00
2015-06-30 14:51:00 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-06-24 16:08:20 -04:00
2015-06-24 16:08:20 -04:00
2015-07-27 18:28:13 -04:00
2015-07-27 18:28:13 -04:00
2015-07-17 13:48:58 -04:00
2015-08-05 09:05:21 -04:00
2015-08-04 09:32:12 -04:00
2015-07-13 17:50:22 -04:00