summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2019-06-21 12:00:42 +0200
committerGitHub <noreply@github.com>2019-06-21 12:00:42 +0200
commita9179ab032cda80801e7f67ef20db5ee60989f21 (patch)
treed8af8ff1addf29e0e4c42688ef5c47b297f9a81d
parent2ef6f209f79b0bd27d53405f0d46bb9ab82b2a52 (diff)
Fixed typo in BasicExpressionsTests.test_object_update_fk() test.
-rw-r--r--tests/expressions/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/expressions/tests.py b/tests/expressions/tests.py
index a8897fa069..fb9fd3d1e2 100644
--- a/tests/expressions/tests.py
+++ b/tests/expressions/tests.py
@@ -285,7 +285,7 @@ class BasicExpressionsTests(TestCase):
test_gmbh.point_of_contact = self.gmbh.ceo
test_gmbh.save()
- test_gmbh.name = F('ceo__last_name')
+ test_gmbh.name = F('ceo__lastname')
msg = 'Joined field references are not permitted in this query'
with self.assertRaisesMessage(FieldError, msg):
test_gmbh.save()