| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2025-12-22 | Fixed #36786 -- Fixed XML serialization of None values in natural keys. | Youngkwang Yang | |
| None values in natural keys were incorrectly serialized as the string "None", causing deserialization to fail for fields like UUIDField. | |||
| 2025-12-03 | Fixed #35729 -- Enabled natural key serialization opt-out for subclasses. | rimi0108 | |
| Refactored serialization logic to allow models inheriting a natural_key() method (e.g. AbstractBaseUser) to explicitly opt out of natural key serialization by returning an empty tuple from the method. Thanks Jonas Dittrich for the report. Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> | |||
| 2024-12-05 | Refs #21286 -- Fixed serializers tests if Pillow isn't installed. | Mariusz Felisiak | |
| 2024-12-03 | Refs #21286 -- Enabled ImageField test cases in serializer data tests. | Adam Zapletal | |
| This aligns ImageField to be tested in the same way as FileField. The commented-out test also exists for FileField and relates to #10244. | |||
| 2024-11-28 | Refs #21286 -- Fixed serializer test with primary key TextField. | Adam Zapletal | |
| 2024-11-12 | Refs #21286 -- Fixed YAML serialization of TimeField primary key. | Adam Zapletal | |
| Handling for PyYAML not being able to serialize `datetime.time` values is moved from `handle_field` to `_value_from_field` as only non-primary key, non-relation fields are passed into `handle_field`. | |||
| 2024-03-04 | Refs #21286 -- Removed invalid commented out models and tests from ↵ | Adam Zapletal | |
| serializer tests. FileField/ImageField cannot be primary keys, so serialization support for this case will not be implemented. XMLField was removed in d1290b5b43485c7018ba92981d34c1f96614924e. | |||
| 2024-01-26 | Applied Black's 2024 stable style. | Mariusz Felisiak | |
| https://github.com/psf/black/releases/tag/24.1.0 | |||
| 2023-08-19 | Fixed #34779 -- Avoided unnecessary selection of non-nullable m2m fields ↵ | Juan Alvarez | |
| without natural keys during serialization. By using `select_related(None)` instead of `select_related()`, the unnecessary joins are completely avoided. Note that the current tests already covers the change, when the field is not `null=True`. Regression in f9936deed1ff13b20e18bd9ca2b0750b52706b6c. | |||
| 2023-06-04 | Fixed #34620 -- Fixed serialization crash on m2m fields without natural keys ↵ | Mariusz Felisiak | |
| when base querysets use select_related(). Regression in 19e0587ee596debf77540d6a08ccb6507e60b6a7. Thanks Martin Svoboda for the report. | |||
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2021-02-05 | Fixed #32420 -- Fixed detecting primary key values in deserialization when ↵ | Mikolaj Rybinski | |
| PK is also a FK. | |||
| 2021-01-14 | Refs #31369 -- Removed models.NullBooleanField per deprecation timeline. | Mariusz Felisiak | |
| 2020-05-04 | Changed `'%s' % value` pattern to `str(value)`. | Nick Pope | |
| 2020-04-07 | Enforced uniqueness of natural keys used in tests. | Mariusz Felisiak | |
| 2019-12-30 | Fixed #31071 -- Disabled insert optimization for primary keys with defaults ↵ | Simon Charette | |
| when loading fixtures. Model.save_base() is called directly when loading fixtures and assumes existing rows will be updated. Branching of "raw" allows to maintain the optimization introduced in #29260 while supporting this edge case. Regression in 85458e94e38c20e57939947ee515a1a53689659f. Thanks Reupen Shah for the report. | |||
| 2019-11-19 | Fixed #30987 -- Added models.PositiveBigIntegerField. | Caio Ariede | |
| 2019-06-27 | Fixed #28725 -- Prevented serializing inherited ManyToManyFields in child model. | Nadège Michel | |
| 2018-12-27 | Followed style guide for model attribute ordering. | Matt Wiens | |
| 2018-11-27 | Fixed #28385 -- Fixed deserializing natural keys when primary key has a ↵ | dmytryi.striletskyi | |
| default value. Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com> | |||
| 2018-07-13 | Fixed #26291 -- Allowed loaddata to handle forward references in natural_key ↵ | Peter Inglesby | |
| fixtures. | |||
| 2018-03-20 | Fixed #29227 -- Allowed BooleanField to be null=True. | Tim Graham | |
| Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review. | |||
| 2018-02-12 | Fixed #24607 -- Serialized natural keys in multi-table inheritance models. | Denys Duchier | |
| Thanks João Paulo Melo de Sampaio for the test. | |||
| 2017-09-18 | Revert "Refs #21286 -- Enabled serializer tests with time pk model" | Claude Paroz | |
| This reverts commit 01c6a3e227b645e8dea97e9befecd23d1d3b8581. Unfortunately, the YAML serializer is not yet able to cope with time values. | |||
| 2017-09-17 | Refs #21286 -- Enabled serializer tests with time pk model | Claude Paroz | |
| 2017-07-20 | Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and ↵ | Tim Graham | |
| Expression.convert_value(). Unused since a0d166306fbdc41f49e6fadf4ec84b17eb147daa. | |||
| 2017-06-05 | Refs #21286 -- Enabled serializer tests with date/datetime pk model | Claude Paroz | |
| 2017-02-11 | Fixed #27742 -- Reverted "Fixed #24607 -- Serialized natural keys in ↵ | Tim Graham | |
| multi-table inheritance models." This reverts commit 74a575eb7296fb04e1fc2bd4e3f68dee3c66ee0a as it causes unexpected migrations and doesn't seem to be the best solution. | |||
| 2017-01-25 | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | |
| 2017-01-19 | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | |
| 2017-01-18 | Refs #23919 -- Removed six.<various>_types usage | Claude Paroz | |
| Thanks Tim Graham and Simon Charette for the reviews. | |||
| 2017-01-18 | Refs #23919 -- Removed python_2_unicode_compatible decorator usage | Claude Paroz | |
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2017-01-17 | Removed Manager.use_for_related_fields and Meta.manager_inheritance_from_future. | Tim Graham | |
| Per deprecation timeline. Refs ed0ff913c648b16c4471fc9a9441d1ee48cb5420. | |||
| 2016-11-30 | Refs #27358 -- Removed invalid/unneeded FileField.upload_to in tests/docs. | Tim Graham | |
| 2016-11-10 | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | |
| 2016-10-12 | Fixed #24607 -- Serialized natural keys in multi-table inheritance models. | João Sampaio | |
| 2016-04-22 | Fixed #26320 -- Deprecated implicit OneToOnField parent_link. | Tim Graham | |
| 2015-09-26 | Made tests/serializers/models.py a models package | Claude Paroz | |
| Thanks Tim Graham for the patch series review. | |||
