Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 2 | -69/+87 |
| | |||||
* | Refs #33333 -- Fixed ↵ | Mariusz Felisiak | 2021-12-04 | 2 | -3/+8 |
| | | | | | | 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 Felisiak | 2021-12-03 | 2 | -0/+5 |
| | | | | | | | | | PostgreSQL. This makes models.BinaryField pickleable on PostgreSQL. Regression in 3cf80d3fcf7446afdde16a2be515c423f720e54d. Thanks Adam Zimmerman for the report. | ||||
* | Refs #32548 -- Added tests for passing conditional expressions to Q(). | Mariusz Felisiak | 2021-03-17 | 1 | -0/+11 |
| | |||||
* | Refs #31926 -- Made test_pickle_filteredrelation_m2m do not depend on auto-PK. | Mariusz Felisiak | 2020-10-15 | 2 | -2/+3 |
| | | | | 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 Charette | 2020-10-05 | 1 | -1/+1 |
| | |||||
* | Fixed #31926 -- Fixed recreating queryset with FilteredRelation when using a ↵ | David-Wobrock | 2020-10-05 | 1 | -0/+34 |
| | | | | | | | pickled Query. In a pickled join, the join_fields had the same values, but weren't the same object (contrary to when not pickling the QuerySet). | ||||
* | Fixed #31943 -- Fixed recreating QuerySet.values()/values_list() when using ↵ | Hasan Ramezani | 2020-09-11 | 1 | -1/+23 |
| | | | | a pickled Query. | ||||
* | Refs #30727 -- Added tests for Subquery with queryset in kwargs pickle ↵ | Mariusz Felisiak | 2020-05-19 | 1 | -0/+12 |
| | | | | without evaluating it. | ||||
* | Optimized Model and QuerySet pickling version comparison. | Adam Johnson | 2020-05-11 | 1 | -2/+5 |
| | |||||
* | Refs #25361 -- Added test for pickling queryset of abstract-inherited models ↵ | Baptiste Mispelon | 2019-12-12 | 2 | -1/+21 |
| | | | | | | with Meta.ordering. Fixed in 67cf5efa31acb2916034afb15610b700695dfcb0. | ||||
* | Fixed #20577 -- Deferred filtering of prefetched related querysets. | Alex Aktsipetrov | 2019-10-21 | 1 | -0/+6 |
| | | | | | | | Added internal interface to QuerySet that allows to defer next filter call till .query is accessed. Used it to optimize prefetch_related(). Thanks Simon Charette for the review. | ||||
* | Fixed #30727 -- Made Subquery pickle without evaluating their QuerySet. | Andrew Brown | 2019-08-27 | 1 | -0/+35 |
| | | | | | Subquery expression objects, when pickled, were evaluating the QuerySet objects saved in its _constructor_args attribute. | ||||
* | Switched setUp() to setUpTestData() where possible in Django's tests. | Simon Charette | 2018-11-27 | 1 | -1/+2 |
| | |||||
* | Removed unnecessary trailing commas and spaces in various code. | Mariusz Felisiak | 2017-12-28 | 1 | -1/+1 |
| | |||||
* | Refs #28575 -- Made RelatedObjectDoesNotExist classes pickable. | Simon Charette | 2017-10-18 | 2 | -0/+13 |
| | | | Thanks to Rachel Tobin for the initial __qualname__ work and tests. | ||||
* | Refs #28575 -- Allowed pickling Model.DoesNotExist and ↵ | Rachel Tobin | 2017-10-13 | 1 | -0/+8 |
| | | | | MultipleObjectsReturned classes. | ||||
* | Converted usage of ugettext* functions to their gettext* aliases | Claude Paroz | 2017-02-07 | 1 | -1/+1 |
| | | | | Thanks Tim Graham for the review. | ||||
* | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | 2017-01-25 | 1 | -2/+2 |
| | |||||
* | Refs #23919 -- Removed str() conversion of type and method __name__. | Simon Charette | 2017-01-19 | 1 | -2/+1 |
| | |||||
* | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | 2017-01-19 | 1 | -2/+2 |
| | |||||
* | Refs #23919 -- Removed six.PY2/PY3 usage | Claude Paroz | 2017-01-18 | 2 | -7/+1 |
| | | | | Thanks Tim Graham for the review. | ||||
* | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | 2017-01-18 | 1 | -2/+0 |
| | |||||
* | Fixed #27499 -- Made Prefetches pickle without evaluating their QuerySet. | Adam Chainz | 2016-11-23 | 1 | -0/+9 |
| | |||||
* | Added more tests for pickling Prefetches with QuerySets. | Adam Chainz | 2016-11-23 | 1 | -0/+19 |
| | |||||
* | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | 2016-11-10 | 1 | -1/+1 |
| | |||||
* | Fixed #27159 -- Prevented pickling a query with an __in=inner_qs lookup from ↵ | Jani Tiainen | 2016-09-22 | 1 | -0/+39 |
| | | | | evaluating inner_qs. | ||||
* | Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with ↵ | Mads Jensen | 2016-09-13 | 1 | -3/+3 |
| | | | | assertSequenceEqual(). | ||||
* | Fixed many spelling mistakes in code, comments, and docs. | Josh Soref | 2015-12-03 | 1 | -1/+1 |
| | |||||
* | Fixed #25745 -- Promoted RuntimeWarnings to errors in the test suite. | Simon Charette | 2015-11-14 | 1 | -13/+4 |
| | |||||
* | Refs #17917 -- Added a test for pickling annotations on fields with callable ↵ | Tim Graham | 2015-10-07 | 1 | -0/+6 |
| | | | | | | defaults. Fixed in f403653cf146384946e5c879ad2a351768ebc226. | ||||
* | Fixed #21127 -- Started deprecation toward requiring on_delete for ↵ | Flavio Curella | 2015-07-27 | 1 | -1/+1 |
| | | | | ForeignKey/OneToOneField | ||||
* | Refs #24919 -- Made test models serializable for migrations. | Tim Graham | 2015-07-21 | 2 | -20/+9 |
| | |||||
* | Fixed #24831 -- Fixed pickling queryset with prefetch_related() after ↵ | Andriy Sokolovskiy | 2015-06-02 | 1 | -0/+14 |
| | | | | deleting objects. | ||||
* | Fixed mistakes in tests unveiled by version bump to 1.8.1. | Tim Graham | 2015-04-02 | 2 | -7/+7 |
| | | | | Forwardport of e7366ab1f908b8cbf8d7e83037b5f17d101b5ade from stable/1.8.x | ||||
* | Renamed Field.rel attribute to remote_field | Anssi Kääriäinen | 2015-03-25 | 1 | -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_opts | Anssi Kääriäinen | 2015-02-23 | 1 | -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 Graham | 2015-02-06 | 2 | -3/+3 |
| | |||||
* | Fixed #24211 -- Removed ValuesQuerySet() and ValuesListQuerySet(). | Loic Bistuer | 2015-01-30 | 1 | -2/+1 |
| | | | | Thanks Anssi Kääriäinen, Marc Tamlyn, and Tim Graham for the reviews. | ||||
* | Fixed #12663 -- Formalized the Model._meta API for retrieving fields. | Daniel Pyrathon | 2015-01-06 | 1 | -1/+1 |
| | | | | | 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 field | Claude Paroz | 2014-12-24 | 2 | -0/+6 |
| | | | | Refs #14515. | ||||
* | Fixed #21430 -- Added a RuntimeWarning when unpickling Models and QuerySets ↵ | Anubhav Joshi | 2014-06-11 | 2 | -1/+48 |
| | | | | | | | 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 return ↵ | Loic Bistuer | 2014-01-28 | 1 | -0/+3 |
| | | | | | | | | '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 warnings | coagulant | 2013-11-02 | 1 | -1/+1 |
| | |||||
* | Fixing E302 Errors | Jason Myers | 2013-11-02 | 1 | -0/+6 |
| | | | | Signed-off-by: Jason Myers <jason@jasonamyers.com> | ||||
* | Fixed #21302 -- Fixed unused imports and import *. | Tim Graham | 2013-11-02 | 1 | -1/+0 |
| | |||||
* | Fix all violators of E231 | Alex Gaynor | 2013-10-26 | 1 | -1/+1 |
| | |||||
* | Added tests for double-pickling a QuerySet | Anssi Kääriäinen | 2013-09-14 | 1 | -0/+12 |
| | | | | Refs #21102. | ||||
* | Removed most of absolute_import imports | Claude Paroz | 2013-07-29 | 2 | -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 Bistuer | 2013-07-26 | 1 | -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. |