summaryrefslogtreecommitdiff
path: root/tests/queryset_pickle/models.py
AgeCommit message (Collapse)Author
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-12-04Refs #33333 -- Fixed ↵Mariusz Felisiak
PickleabilityTestCase.test_annotation_with_callable_default() crash on Oracle. Grouping by LOBs is not allowed on Oracle. This moves a binary field to a separate model.
2021-12-03Fixed #33333 -- Fixed setUpTestData() crash with models.BinaryField on ↵Mariusz Felisiak
PostgreSQL. This makes models.BinaryField pickleable on PostgreSQL. Regression in 3cf80d3fcf7446afdde16a2be515c423f720e54d. Thanks Adam Zimmerman for the report.
2020-10-15Refs #31926 -- Made test_pickle_filteredrelation_m2m do not depend on auto-PK.Mariusz Felisiak
This caused failures on CockroachDB that use random rather than serial pk values.
2020-10-05Refs #31926 -- Fixed reverse related identity crash on Q() limit_choices_to.Simon Charette
2019-12-12Refs #25361 -- Added test for pickling queryset of abstract-inherited models ↵Baptiste Mispelon
with Meta.ordering. Fixed in 67cf5efa31acb2916034afb15610b700695dfcb0.
2017-10-18Refs #28575 -- Made RelatedObjectDoesNotExist classes pickable.Simon Charette
Thanks to Rachel Tobin for the initial __qualname__ work and tests.
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-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-21Refs #24919 -- Made test models serializable for migrations.Tim Graham
2015-04-02Fixed mistakes in tests unveiled by version bump to 1.8.1.Tim Graham
Forwardport of e7366ab1f908b8cbf8d7e83037b5f17d101b5ade from stable/1.8.x
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-12-24Complemented pickle test for ValuesQuerySet with related fieldClaude Paroz
Refs #14515.
2014-06-11Fixed #21430 -- Added a RuntimeWarning when unpickling Models and QuerySets ↵Anubhav Joshi
from a different Django version. Thanks FunkyBob for the suggestion, prasoon2211 for the initial patch, and akaariai, loic, and charettes for helping in shaping the patch.
2013-11-02Fixing E302 ErrorsJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-10-26Fix all violators of E231Alex Gaynor
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-06-14Fixed #20289 -- pickling of dynamic modelsAnssi Kääriäinen
2013-03-29Fix #20158: invalid code in queryset_pickle test models.Baptiste Mispelon
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner