diff options
author | Jozef Knaperek <jknaperek@gmail.com> | 2014-07-11 22:11:04 +0200 |
---|---|---|
committer | Anssi Kääriäinen <akaariai@gmail.com> | 2014-11-12 12:53:30 +0200 |
commit | c56c42b5c01ed774cfa8e044cd372a984608536c (patch) | |
tree | f04a635b41051a6d6c1f423a954538f4834bce64 /tests/basic | |
parent | d647764a53a77be89c8d7239d70adcf8343d9f3a (diff) | |
download | django-c56c42b5c01ed774cfa8e044cd372a984608536c.tar.gz |
Fixed #22967 -- Made Model._do_update consistent
Made _do_update behave more strictly according to its docs,
including a corner case when specific concurent updates are
executed and select_on_save is set.
Diffstat (limited to 'tests/basic')
-rw-r--r-- | tests/basic/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basic/tests.py b/tests/basic/tests.py index 4f3e8a958f..a10e38f2a4 100644 --- a/tests/basic/tests.py +++ b/tests/basic/tests.py @@ -701,7 +701,7 @@ class SelectOnSaveTests(TestCase): try: Article._base_manager.__class__ = FakeManager asos = ArticleSelectOnSave.objects.create(pub_date=datetime.now()) - with self.assertNumQueries(2): + with self.assertNumQueries(3): asos.save() self.assertTrue(FakeQuerySet.called) # This is not wanted behavior, but this is how Django has always |