We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9deaa72 commit d411368Copy full SHA for d411368
tests/test_cache.py
@@ -602,8 +602,9 @@ def test_multidb_sharding_no_invalidation(self):
602
""" Test for no invalidation when sharding w/distinct PKs"""
603
master_obj = User.objects.using('default').create(name='new-test-user')
604
# if pks are the same, objects *will* be invalidated across DBs
605
- master_obj2 = User.objects.using('master2').create(pk=master_obj.pk+1, name='other-test-user')
606
- # prime the cache for the default DB
+ master_obj2 = User.objects.using('master2').create(pk=master_obj.pk+1,
+ name='other-test-user')
607
+ # prime the cache for the default DB
608
master_obj = User.objects.using('default').get(name='new-test-user')
609
assert master_obj.from_cache is False
610
0 commit comments