mirror of
https://github.com/django/django.git
synced 2026-02-09 02:49:25 +08:00
Corrected test_update_or_create_with_model_property_defaults test.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user