Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/queryset_pickle
Commit message (Collapse)AuthorAgeFilesLines
* Refs #17917 -- Added a test for pickling annotations on ↵Tim Graham2015-10-071-0/+6
| | | | | | fields with callable defaults. Fixed in f403653cf146384946e5c879ad2a351768ebc226.
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-1/+1
| | | | on_delete for ForeignKey/OneToOneField
* Refs #24919 -- Made test models serializable for migrations.Tim Graham2015-07-212-20/+9
|
* Fixed #24831 -- Fixed pickling queryset with ↵Andriy Sokolovskiy2015-06-021-0/+14
| | | | prefetch_related() after deleting objects.
* Fixed mistakes in tests unveiled by version bump to 1.8.1.Tim Graham2015-04-022-7/+7
| | | | Forwardport of e7366ab1f908b8cbf8d7e83037b5f17d101b5ade from stable/1.8.x
* Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen2015-03-251-1/+1
| | | | | | | | 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.
* Fixed #24381 -- removed ForeignObjectRel opts and to_optsAnssi Kääriäinen2015-02-231-0/+3
| | | | | | | | | 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.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-062-3/+3
|
* Fixed #24211 -- Removed ValuesQuerySet() and ↵Loic Bistuer2015-01-301-2/+1
| | | | | | ValuesListQuerySet(). Thanks Anssi Kääriäinen, Marc Tamlyn, and Tim Graham for the reviews.
* Fixed #12663 -- Formalized the Model._meta API for ↵Daniel Pyrathon2015-01-071-1/+1
| | | | | | | retrieving fields. Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
* Complemented pickle test for ValuesQuerySet with related ↵Claude Paroz2014-12-242-0/+6
| | | | | | field Refs #14515.
* Fixed #21430 -- Added a RuntimeWarning when unpickling ↵Anubhav Joshi2014-06-112-1/+48
| | | | | | | Models and QuerySets 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.
* Fixed #21853 -- Fixed Manager.__module__ to properly ↵Loic Bistuer2014-01-281-0/+3
| | | | | | | | return '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.
* Fixed all E261 warningscoagulant2013-11-031-1/+1
|
* Fixing E302 ErrorsJason Myers2013-11-031-0/+6
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-021-1/+0
|
* Fix all violators of E231Alex Gaynor2013-10-261-1/+1
|
* Added tests for double-pickling a QuerySetAnssi Kääriäinen2013-09-141-0/+12
| | | | Refs #21102.
* Removed most of absolute_import importsClaude Paroz2013-07-292-4/+2
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Fixed #20625 -- Chainable Manager/QuerySet methods.Loic Bistuer2013-07-261-0/+4
| | | | | | | | | | | 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.
* Fixed #20289 -- pickling of dynamic modelsAnssi Kääriäinen2013-06-142-1/+52
|
* Fix #20158: invalid code in queryset_pickle test models.Baptiste Mispelon2013-03-292-3/+6
|
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+86