mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Previously, ArrayField always used base_field.get_db_prep_value when saving, which could differ from how base_field prepares data for save. This change overrides ArrayField.get_db_prep_save to delegate to the base_field's get_db_prep_save, ensuring elements like None in JSONField arrays are saved correctly as SQL NULL instead of JSON null.
6.1 KiB
6.1 KiB