diff options
Diffstat (limited to 'tests/modeltests')
| -rw-r--r-- | tests/modeltests/update_only_fields/tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/modeltests/update_only_fields/tests.py b/tests/modeltests/update_only_fields/tests.py index 9ca0f968d1..97c05ddc79 100644 --- a/tests/modeltests/update_only_fields/tests.py +++ b/tests/modeltests/update_only_fields/tests.py @@ -207,6 +207,9 @@ class UpdateOnlyFieldsTests(TestCase): self.assertEqual(len(post_save_data[0]), 1) self.assertTrue('name' in post_save_data[0]) + pre_save.disconnect(pre_save_receiver) + post_save.disconnect(post_save_receiver) + def test_update_fields_incorrect_params(self): s = Person.objects.create(name='Sara', gender='F') @@ -233,6 +236,9 @@ class UpdateOnlyFieldsTests(TestCase): self.assertEqual(len(pre_save_data), 0) self.assertEqual(len(post_save_data), 0) + pre_save.disconnect(pre_save_receiver) + post_save.disconnect(post_save_receiver) + def test_num_queries_inheritance(self): s = Employee.objects.create(name='Sara', gender='F') s.employee_num = 1 |
