1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed typo in BasicExpressionsTests.test_object_update_fk() test.

This commit is contained in:
Mariusz Felisiak 2019-06-21 12:00:42 +02:00 committed by GitHub
parent 2ef6f209f7
commit a9179ab032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()