summaryrefslogtreecommitdiff
path: root/tests/serializers
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Applied Black's 2023 stable style.David Smith2023-02-012-3/+2
| | | | | | | | Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
* Refs #29708 -- Removed PickleSerializer per deprecation timeline.Mariusz Felisiak2023-01-171-29/+2
|
* Fixed #33937 -- Optimized serialization of related m2m fields without ↵Mark Evans2022-09-051-0/+27
| | | | natural keys.
* Fixed various tests on MySQL with MyISAM storage engine.Mariusz Felisiak2022-04-181-5/+7
|
* Removed redundant QuerySet.all() calls in docs and tests.Nick Pope2022-02-221-4/+4
| | | | Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-072-3/+9
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-0712-290/+484
|
* Fixed #29708 -- Deprecated PickleSerializer.Adam Johnson2022-01-131-1/+12
|
* Refs #33012 -- Moved PickleSerializer to django.core.serializers.base and ↵Daniyal Abbasi2021-09-021-1/+17
| | | | added tests.
* Fixed #32420 -- Fixed detecting primary key values in deserialization when ↵Mikolaj Rybinski2021-02-052-2/+35
| | | | PK is also a FK.
* Refs #31369 -- Removed models.NullBooleanField per deprecation timeline.Mariusz Felisiak2021-01-142-9/+2
|
* Fixed #31888 -- Avoided module-level MySQL queries in tests.Ahmad A. Hussein2020-08-171-9/+8
|
* Fixed #17653 -- Allowed using zero as AutoFields value on MySQL if ↵Mariusz Felisiak2020-07-201-2/+2
| | | | NO_AUTO_VALUE_ON_ZERO SQL mode is enabled.
* Refs #30190 -- Minor edits to JSONL serializer.Mariusz Felisiak2020-06-171-99/+48
| | | Follow up to e29637681be07606674cdccb47d1e53acb930f5b.
* Fixed #30190 -- Added JSONL serializer.Ali Vakilzade2020-06-161-0/+312
|
* Fixed #29078 -- Made serializers respect prefetch_related() for m2m fields.Claude Paroz2020-05-251-0/+13
|
* Refs #31395 -- Relied on setUpTestData() test data isolation in various tests.Simon Charette2020-05-151-11/+12
|
* Changed `'%s' % value` pattern to `str(value)`.Nick Pope2020-05-041-1/+1
|
* Fixed #29249 -- Made JSON and YAML serializers use Unicode by default.Hasan Ramezani2020-04-282-9/+8
|
* Refs #29249 -- Added tests for serializing Unicode data with XML serializer.Hasan Ramezani2020-04-281-0/+8
|
* Enforced uniqueness of natural keys used in tests.Mariusz Felisiak2020-04-071-1/+1
|
* Used assertRaisesMessage() in various tests.Hasan Ramezani2020-02-071-2/+1
|
* Fixed #31071 -- Disabled insert optimization for primary keys with defaults ↵Simon Charette2019-12-302-1/+8
| | | | | | | | | | | | 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.
* Fixed #26743 -- Fixed UnboundLocalError crash when deserializing m2m fields ↵Baptiste Mispelon2019-12-131-0/+14
| | | | and value isn't iterable.
* Fixed #30987 -- Added models.PositiveBigIntegerField.Caio Ariede2019-11-192-2/+8
|
* Corrected several typos in string literals and test names.Min ho Kim2019-08-071-1/+1
|
* Added test for serializing child model without inherited fields.Nadège Michel2019-06-271-1/+2
|
* Fixed #28725 -- Prevented serializing inherited ManyToManyFields in child model.Nadège Michel2019-06-272-2/+11
|
* Refs #11929 -- Fixed ordering of test YAML dumps.Tobias Kunze2019-05-031-14/+14
| | | | Thanks Nick Pope for the review.
* Removed unused YamlSerializerTestCase.fwd_ref_str.Mariusz Felisiak2019-05-031-16/+0
| | | Unused since its introduction in febd5aeec604198b2e374a33552b0c365096fd45.
* Fixed serializers test crash if PyYAML isn't installed.Tim Graham2019-03-201-1/+1
| | | | Follow up to a57c783dd4e6dc73847081221827a1902eede88b.
* Fixed serializers tests for PyYAML 5.1+.Mariusz Felisiak2019-03-141-1/+3
|
* Followed style guide for model attribute ordering.Matt Wiens2018-12-271-2/+2
|
* Fixed #28385 -- Fixed deserializing natural keys when primary key has a ↵dmytryi.striletskyi2018-11-272-1/+36
| | | | | | default value. Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com>
* Fixed #26291 -- Allowed loaddata to handle forward references in natural_key ↵Peter Inglesby2018-07-132-1/+112
| | | | fixtures.
* Fixed #29227 -- Allowed BooleanField to be null=True.Tim Graham2018-03-202-7/+2
| | | | Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
* Fixed #24607 -- Serialized natural keys in multi-table inheritance models.Denys Duchier2018-02-123-1/+48
| | | | Thanks João Paulo Melo de Sampaio for the test.
* Fixed #28984 -- Made assorted code simplifications.Tim Graham2018-01-031-9/+2
|
* Fixed #28893 -- Removed unnecessary dict.items() calls.Tim Graham2017-12-061-1/+1
|
* Fixed #28856 -- Fixed a regression in caching of a GenericForeignKey ↵Simon Charette2017-11-302-11/+1
| | | | | | pointing to a MTI model. Regression in b9f8635f58ad743995cad2081b3dc395e55761e5.
* Fixed #28610 -- Skipped test when serializer is not availableClaude Paroz2017-09-181-10/+10
| | | | Thanks Tim Graham for the review.
* Revert "Refs #21286 -- Enabled serializer tests with time pk model"Claude Paroz2017-09-182-5/+4
| | | | | This reverts commit 01c6a3e227b645e8dea97e9befecd23d1d3b8581. Unfortunately, the YAML serializer is not yet able to cope with time values.
* Refs #21286 -- Enabled serializer tests with time pk modelClaude Paroz2017-09-172-4/+5
|
* Refs #23919 -- Replaced usage of django.utils.functional.curry() with ↵Sergey Fedoseev2017-09-063-5/+5
| | | | functools.partial()/partialmethod().
* Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and ↵Tim Graham2017-07-201-1/+1
| | | | | | Expression.convert_value(). Unused since a0d166306fbdc41f49e6fadf4ec84b17eb147daa.
* Refs #21286 -- Enabled serializer tests with date/datetime pk modelClaude Paroz2017-06-052-16/+19
|
* Sorted imports per isort 4.2.9.Tim Graham2017-06-011-1/+0
|
* Fixed #27742 -- Reverted "Fixed #24607 -- Serialized natural keys in ↵Tim Graham2017-02-113-52/+1
| | | | | | | multi-table inheritance models." This reverts commit 74a575eb7296fb04e1fc2bd4e3f68dee3c66ee0a as it causes unexpected migrations and doesn't seem to be the best solution.
* Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().Tim Graham2017-02-091-1/+1
|
* Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz2017-02-071-3/+3
| | | | Thanks Tim Graham for the review.