summaryrefslogtreecommitdiff
path: root/tests/queryset_pickle
AgeCommit message (Collapse)Author
2018-11-27Switched setUp() to setUpTestData() where possible in Django's tests.Simon Charette
2017-12-28Removed unnecessary trailing commas and spaces in various code.Mariusz Felisiak
2017-10-18Refs #28575 -- Made RelatedObjectDoesNotExist classes pickable.Simon Charette
Thanks to Rachel Tobin for the initial __qualname__ work and tests.
2017-10-13Refs #28575 -- Allowed pickling Model.DoesNotExist and ↵Rachel Tobin
MultipleObjectsReturned classes.
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 -- Removed str() conversion of type and method __name__.Simon Charette
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.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-11-23Fixed #27499 -- Made Prefetches pickle without evaluating their QuerySet.Adam Chainz
2016-11-23Added more tests for pickling Prefetches with QuerySets.Adam Chainz
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-09-22Fixed #27159 -- Prevented pickling a query with an __in=inner_qs lookup from ↵Jani Tiainen
evaluating inner_qs.
2016-09-13Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with ↵Mads Jensen
assertSequenceEqual().
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
2015-11-14Fixed #25745 -- Promoted RuntimeWarnings to errors in the test suite.Simon Charette
2015-10-07Refs #17917 -- Added a test for pickling annotations on fields with callable ↵Tim Graham
defaults. Fixed in f403653cf146384946e5c879ad2a351768ebc226.
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-06-02Fixed #24831 -- Fixed pickling queryset with prefetch_related() after ↵Andriy Sokolovskiy
deleting objects.
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-03-25Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen
Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True.
2015-02-23Fixed #24381 -- removed ForeignObjectRel opts and to_optsAnssi Kääriäinen
These cached properies were causing problems with pickling, and in addition they were confusingly defined: field.rel.model._meta was not the same as field.rel.opts. Instead users should use field.rel.related_model._meta inplace of field.rel.opts, and field.rel.to._meta in place of field.rel.to_opts.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-30Fixed #24211 -- Removed ValuesQuerySet() and ValuesListQuerySet().Loic Bistuer
Thanks Anssi Kääriäinen, Marc Tamlyn, and Tim Graham for the reviews.
2015-01-06Fixed #12663 -- Formalized the Model._meta API for retrieving fields.Daniel Pyrathon
Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
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.
2014-01-28Fixed #21853 -- Fixed Manager.__module__ to properly return ↵Loic Bistuer
'django.db.models.manager'. The combination of BaseManager.from_queryset() and RenameMethodsBase results in Manager.__module__ having the wrong value. This can be an issue when trying to pickle the Manager class.
2013-11-02Fixed all E261 warningscoagulant
2013-11-02Fixing E302 ErrorsJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02Fixed #21302 -- Fixed unused imports and import *.Tim Graham
2013-10-26Fix all violators of E231Alex Gaynor
2013-09-14Added tests for double-pickling a QuerySetAnssi Kääriäinen
Refs #21102.
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-07-26Fixed #20625 -- Chainable Manager/QuerySet methods.Loic Bistuer
Additionally this patch solves the orthogonal problem that specialized `QuerySet` like `ValuesQuerySet` didn't inherit from the current `QuerySet` type. This wasn't an issue until now because we didn't officially support custom `QuerySet` but it became necessary with the introduction of this new feature. Thanks aaugustin, akaariai, carljm, charettes, mjtamlyn, shaib and timgraham for the reviews.
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