summaryrefslogtreecommitdiff
path: root/tests/serializers
AgeCommit message (Collapse)Author
2019-03-20[2.2.x] Fixed serializers test crash if PyYAML isn't installed.Tim Graham
Follow up to a57c783dd4e6dc73847081221827a1902eede88b. Backport of 55490ac7469a3647ce163bee323f7fe4a06fcaa6 from master
2019-03-14[2.2.x] Fixed serializers tests for PyYAML 5.1+.Mariusz Felisiak
Backport of a57c783dd4e6dc73847081221827a1902eede88b from master
2018-12-27Followed style guide for model attribute ordering.Matt Wiens
2018-11-27Fixed #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-13Fixed #26291 -- Allowed loaddata to handle forward references in natural_key ↵Peter Inglesby
fixtures.
2018-03-20Fixed #29227 -- Allowed BooleanField to be null=True.Tim Graham
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
2018-02-12Fixed #24607 -- Serialized natural keys in multi-table inheritance models.Denys Duchier
Thanks João Paulo Melo de Sampaio for the test.
2018-01-03Fixed #28984 -- Made assorted code simplifications.Tim Graham
2017-12-06Fixed #28893 -- Removed unnecessary dict.items() calls.Tim Graham
2017-11-30Fixed #28856 -- Fixed a regression in caching of a GenericForeignKey ↵Simon Charette
pointing to a MTI model. Regression in b9f8635f58ad743995cad2081b3dc395e55761e5.
2017-09-18Fixed #28610 -- Skipped test when serializer is not availableClaude Paroz
Thanks Tim Graham for the review.
2017-09-18Revert "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-17Refs #21286 -- Enabled serializer tests with time pk modelClaude Paroz
2017-09-06Refs #23919 -- Replaced usage of django.utils.functional.curry() with ↵Sergey Fedoseev
functools.partial()/partialmethod().
2017-07-20Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and ↵Tim Graham
Expression.convert_value(). Unused since a0d166306fbdc41f49e6fadf4ec84b17eb147daa.
2017-06-05Refs #21286 -- Enabled serializer tests with date/datetime pk modelClaude Paroz
2017-06-01Sorted imports per isort 4.2.9.Tim Graham
2017-02-11Fixed #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-02-09Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().Tim Graham
2017-02-07Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz
Thanks Tim Graham for the review.
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-20Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.Tim Graham
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Removed Manager.use_for_related_fields and Meta.manager_inheritance_from_future.Tim Graham
Per deprecation timeline. Refs ed0ff913c648b16c4471fc9a9441d1ee48cb5420.
2016-12-01Refs #27546 -- Tested some __repr__() methods.Keda87
2016-11-30Refs #27358 -- Removed invalid/unneeded FileField.upload_to in tests/docs.Tim Graham
2016-11-17Simplified a test after refs #26207.Joachim Jablon
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-10-12Fixed #24607 -- Serialized natural keys in multi-table inheritance models.João Sampaio
2016-07-14Fixed #26656 -- Added duration (timedelta) support to DjangoJSONEncoder.Will Hardy
2016-06-29Avoided db queries in test_indentation_whitespace.Berker Peksag
2016-06-28Fixed #15091 -- Allowed passing custom encoder to JSON serializer.Berker Peksag
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
2016-06-08Fixed #26717 -- Added Serializer.stream_class to customize the stream.Berker Peksag
2016-04-22Fixed #26320 -- Deprecated implicit OneToOnField parent_link.Tim Graham
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-04-04Fixed W503 flake8 warnings.Tim Graham
2016-01-29Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as ↵Hasan
appropriate.
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
2015-10-27Fixed #25550 -- Deprecated direct assignment to the reverse side of a ↵Tim Graham
related set.
2015-09-27Fixed #25468 -- Made DjangoJSONEncoder lazy string awareClaude Paroz
Thanks Stavros Korokithakis for the report and Tim Graham for the review.
2015-09-26Made tests/serializers/models.py a models packageClaude Paroz
Thanks Tim Graham for the patch series review.
2015-09-26Moved remaining of serializers_regress to serializers testsClaude Paroz
2015-09-26Moved more serializers_regress to serializers testsClaude Paroz