summaryrefslogtreecommitdiff
path: root/tests/queries/tests.py
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2022-08-18 12:30:20 -0400
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-08-30 08:43:53 +0200
commitb3db6c8dcb5145f7d45eff517bcd96460475c879 (patch)
treeca51349fab4db9de0f86dcb315c24caa02ae1e2a /tests/queries/tests.py
parent5d12650ed9269acb3cba97fd70e8df2e35a55a54 (diff)
Fixed #21204 -- Tracked field deferrals by field instead of models.
This ensures field deferral works properly when a model is involved more than once in the same query with a distinct deferral mask.
Diffstat (limited to 'tests/queries/tests.py')
-rw-r--r--tests/queries/tests.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/queries/tests.py b/tests/queries/tests.py
index 1238f021be..1bd72dd8b8 100644
--- a/tests/queries/tests.py
+++ b/tests/queries/tests.py
@@ -3594,12 +3594,6 @@ class WhereNodeTest(SimpleTestCase):
class QuerySetExceptionTests(SimpleTestCase):
- def test_iter_exceptions(self):
- qs = ExtraInfo.objects.only("author")
- msg = "'ManyToOneRel' object has no attribute 'attname'"
- with self.assertRaisesMessage(AttributeError, msg):
- list(qs)
-
def test_invalid_order_by(self):
msg = "Cannot resolve keyword '*' into field. Choices are: created, id, name"
with self.assertRaisesMessage(FieldError, msg):