1
0
mirror of https://github.com/django/django.git synced 2025-10-26 15:16:09 +00:00

Refs #35167 -- Fixed test_bulk_update_custom_get_prep_value() crash on databases that don't support primitives in JSONFields.

For example on Oracle < 21c.
This commit is contained in:
Mariusz Felisiak
2025-02-19 22:13:59 +01:00
committed by Sarah Boyce
parent 65c46d6932
commit 7500044a82
2 changed files with 5 additions and 1 deletions

View File

@@ -304,6 +304,7 @@ class TestSaveLoad(TestCase):
obj.refresh_from_db()
self.assertEqual(obj.value, value)
@skipUnlessDBFeature("supports_primitives_in_json_field")
def test_bulk_update_custom_get_prep_value(self):
objs = CustomSerializationJSONModel.objects.bulk_create(
[CustomSerializationJSONModel(pk=1, json_field={"version": "1"})]