summaryrefslogtreecommitdiff
path: root/tests/queryset_pickle/models.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-4/+4
|
* Refs #33333 -- Fixed ↵Mariusz Felisiak2021-12-041-0/+3
| | | | | | 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.
* Fixed #33333 -- Fixed setUpTestData() crash with models.BinaryField on ↵Mariusz Felisiak2021-12-031-0/+1
| | | | | | | | | PostgreSQL. This makes models.BinaryField pickleable on PostgreSQL. Regression in 3cf80d3fcf7446afdde16a2be515c423f720e54d. Thanks Adam Zimmerman for the report.
* Refs #31926 -- Made test_pickle_filteredrelation_m2m do not depend on auto-PK.Mariusz Felisiak2020-10-151-0/+1
| | | | This caused failures on CockroachDB that use random rather than serial pk values.
* Refs #31926 -- Fixed reverse related identity crash on Q() limit_choices_to.Simon Charette2020-10-051-1/+1
|
* Refs #25361 -- Added test for pickling queryset of abstract-inherited models ↵Baptiste Mispelon2019-12-121-0/+14
| | | | | | with Meta.ordering. Fixed in 67cf5efa31acb2916034afb15610b700695dfcb0.
* Refs #28575 -- Made RelatedObjectDoesNotExist classes pickable.Simon Charette2017-10-181-0/+1
| | | Thanks to Rachel Tobin for the initial __qualname__ work and tests.
* Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz2017-02-071-1/+1
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-2/+2
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-191-2/+2
|
* Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz2017-01-181-4/+1
| | | | Thanks Tim Graham for the review.
* Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella2015-07-271-1/+1
| | | | ForeignKey/OneToOneField
* Refs #24919 -- Made test models serializable for migrations.Tim Graham2015-07-211-13/+5
|
* Fixed mistakes in tests unveiled by version bump to 1.8.1.Tim Graham2015-04-021-2/+1
| | | | Forwardport of e7366ab1f908b8cbf8d7e83037b5f17d101b5ade from stable/1.8.x
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-1/+1
|
* Complemented pickle test for ValuesQuerySet with related fieldClaude Paroz2014-12-241-0/+1
| | | | Refs #14515.
* Fixed #21430 -- Added a RuntimeWarning when unpickling Models and QuerySets ↵Anubhav Joshi2014-06-111-1/+19
| | | | | | | 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.
* Fixing E302 ErrorsJason Myers2013-11-021-0/+6
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fix all violators of E231Alex Gaynor2013-10-261-1/+1
|
* Removed most of absolute_import importsClaude Paroz2013-07-291-2/+0
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Fixed #20289 -- pickling of dynamic modelsAnssi Kääriäinen2013-06-141-0/+10
|
* Fix #20158: invalid code in queryset_pickle test models.Baptiste Mispelon2013-03-291-3/+3
|
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-261-0/+38