summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/get_or_create/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/get_or_create/tests.py b/tests/get_or_create/tests.py
index 65d7510682..c3de4ae180 100644
--- a/tests/get_or_create/tests.py
+++ b/tests/get_or_create/tests.py
@@ -367,7 +367,7 @@ class UpdateOrCreateTests(TestCase):
def test_update_or_create_with_model_property_defaults(self):
"""Using a property with a setter implemented is allowed."""
- t, _ = Thing.objects.get_or_create(
+ t, _ = Thing.objects.update_or_create(
defaults={"capitalized_name_property": "annie"}, pk=1
)
self.assertEqual(t.name, "Annie")