summaryrefslogtreecommitdiff
path: root/django/db/models
AgeCommit message (Collapse)Author
2017-12-01[2.0.x] Fixed #28863 -- Fixed filter on annotation that contains Q.Sergey Fedoseev
Backport of cf12257db23fa248c89a3da3f718aa01a50ca659 from master
2017-11-28[2.0.x] Fixed #28837 -- Fixed test client crash if an exception with more ↵Nicolas Delaby
than one arg is raised. Also removed usage of the problematic pattern elsewhere. Regression in 6e55e1d88a5c4453e25f0caf7ffb68973de5c0ba. Backport of 746caf3ef821dbf7588797cb2600fa81b9df9d1d from master
2017-11-27[2.0.x] Fixed #28848 -- Fixed SQLite/MySQL crash when ordering by a filtered ↵Raphael Michel
subquery that uses nulls_first/nulls_last. Backport of 616f468760e4984915bb2ccca6b9eb3d80ddadb0 from master
2017-11-21[2.0.x] Fixed #28817 -- Made QuerySet.iterator() use server-side cursors ↵Dražen Odobašić
after values() and values_list(). Backport of d97f026a7ab5212192426e45121f7a52751a2044 from master
2017-11-12[2.0.x] Fixed #28781 -- Added QuerySet.values()/values_list() support for ↵Mariusz Felisiak
union(), difference(), and intersection(). Thanks Tim Graham for the review. Backport of 2d3cc94284674638c334670903d49565039d77ae from master
2017-11-06[2.0.x] Fixed #28776 -- Fixed a/an/and typos in docs and comments.Дилян Палаузов
Backport of 6c0042430e3618ce5c276d195d92a6b884daa3a3 from master
2017-10-31[2.0.x] Fixed #28750 -- Allowed models to define ↵Charlie Denton
Meta.manager_inheritance_from_future for backwards compatibility. Refs 631f4ab06112aca5bd6a57b81159048f936050bf. Backport of cbe334918a0a80762249706a15b699714b5dc828 from master
2017-10-30[2.0.x] Fixed #28742 -- Fixed AttributeError crash when assigning None to ↵Paulo
cached reverse relations. Backport of fcfcf8aae470d893b0d2ef176434461edf9e9c4d from master
2017-10-28[2.0.x] Refs #28010 -- Allowed reverse related fields in SELECT FOR UPDATE ↵Ran Benita
.. OF. Thanks Adam Chidlow for polishing the patch. Backport of 03049fb8d96ccd1f1ed0285486103542de42faba from master
2017-10-25[2.0.x] Fixed #28689 -- Fixed unquoted table names in Subquery SQL when ↵Mariusz Felisiak
using OuterRef. Regression in f48bc7c3dbd204eefb3c19016b1e4906ac26bee3. Backport of 81e357a7e19f35235cc998459a10213532727d4e from master
2017-10-21[2.0.x] Fixed #28722 -- Made QuerySet.reverse() affect nulls_first/nulls_last.Tomer Chachamu
Backport of 21a3a29dc9d138c248fd7922923b3ec710735c6c from master
2017-10-18[2.0.x] Fixed outdated comment in RelatedObjectDoesNotExist.Simon Charette
Backport of 0a69479b6c58c9eb420e688e436b6c6e41415613 from master
2017-10-16[2.0.x] Fixed #28497 -- Restored the ability to use sliced QuerySets with ↵Tim Graham
__exact. Regression in ec50937bcbe160e658ef881021402e156beb0eaf. Thanks Simon Charette for review. Backport of 1b73ccc4bf78af905f72f4658cf463f38ebf7b97 from master
2017-10-13[2.0.x] Corrected examples in related field descriptor docstrings.Simon Charette
Using lowercased model class names suggested that accessing the attribute from instances of the class returned an instance of the descriptor, but this is only the case when accessed from the model class. Backport of 9dd405973cc39c00e50e28869808fb0797fea2b4 from master
2017-10-12[2.0.x] Fixed #27846 -- Made Model.refresh_from_db() clear cached relations.Paulo
Backport of a7b5ad8b19a08d7d57302ece74f6e26d2887fd9f from master
2017-10-06[2.0.x] Refs #24254 -- Removed unnecessary SQL AS clause in ↵Mariusz Felisiak
SQLCompiler.as_sql(). Incorrect on Oracle. Backport of 11ade8eefd32f5bc7ee6379b77824f02ca61c20b from master
2017-09-29[2.0.x] Refs #28492 -- Defined aggregates' output_field at the class level.Simon Charette
Missed in 08654a99bbdd09049d682ae57cc94241534b29f0. Backport of f1b713024e3a1e8c6361ea407cb8248224f7cc82 from master
2017-09-22Fixed #27332 -- Added FilteredRelation API for conditional join (ON clause) ↵Nicolas Delaby
support. Thanks Anssi Kääriäinen for contributing to the patch.
2017-09-20Removed unused list in Query.resolve_lookup_value().Nicolas Delaby
Unneeded since its introduction in 4f138fe5a496a81115c4fba6615a517fc62c3b17.
2017-09-18Fixed #28597 -- Fixed crash with the name of a model's autogenerated primary ↵Mariusz Felisiak
key in an Index's fields.
2017-09-18Fixed #26608 -- Added support for window expressions (OVER clause).Mads Jensen
Thanks Josh Smeaton, Mariusz Felisiak, Sergey Fedoseev, Simon Charettes, Adam Chainz/Johnson and Tim Graham for comments and reviews and Jamie Cockburn for initial patch.
2017-09-16Removed unneeded StdDev.convert_value() and Variance.convert_value().Sergey Fedoseev
Seems unneeded since its introduction in f59fd15c4928caf3dfcbd50f6ab47be409a43b01.
2017-09-16Simplified Count.convert_value() and RegrCount.convert_value().Sergey Fedoseev
2017-09-15Removed unnecessary check in SQLCompiler.get_related_selections().Tim Graham
2017-09-11Fixed #28492 -- Defined default output_field of expressions at the class level.Simon Charette
This wasn't possible when settings were accessed during Field initialization time as our test suite setup script was triggering imports of expressions before settings were configured.
2017-09-11Refs #28492 -- Stopped accessing settings at Field.db_tablespace initialization.Simon Charette
Deferring accesses to settings allows database fields to be initialized before settings are loaded.
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-09-07Removed unneeded __init__() methods.Sergey Fedoseev
2017-09-06Fixed #15648 -- Allowed QuerySet.values_list() to return a namedtuple.Sergey Fedoseev
2017-09-06Refs #23919 -- Replaced usage of django.utils.functional.curry() with ↵Sergey Fedoseev
functools.partial()/partialmethod().
2017-09-06Replaced deque() with list() in prefetch_related_objects(). Sergey Fedoseev
deque() isn't needed since algorithm doesn't require FIFO.
2017-09-05Fixed #11557 -- Added support for a list of fields in Meta.get_latest_by and ↵François Freitag
QuerySet.earliest()/latest().
2017-09-05Fixed #28335 -- Allowed query expressions in Meta.ordering.Dima Kudosh
2017-09-05Fixed typo in django/db/models/query.py docstring.Boris Burkov
2017-09-04Corrected YearComparisonLookup.get_bound() signature.Srinivas Reddy Thatiparthy
2017-09-03Updated EmpytResultSet import not to use the alias.Mariusz Felisiak
2017-09-02Moved select_sql in SQLCompiler.get_extra_select() to improve performance.Mariusz Felisiak
2017-08-31Fixed #28549 -- Fixed QuerySet.defer() with super and subclass fields.Jeremy Kerr
Previously, deferring fields in different classes didn't omit the superclass' deferred field. Thanks Simon Charette for the suggested fix.
2017-08-31Fixed #28543 -- Prevented ManyToManyField.value_from_object() from being lazy.Tim Graham
Previously, it was a QuerySet which could reevaluate to a new value if the model's data changes. This is inconsistent with other Field.value_from_object() methods. This allows reverting the fix in the admin for refs #27998.
2017-08-31Simplified model's Options._get_fields() a bit.Sergey Fedoseev
2017-08-23Removed unneeded iter() calls.Sergey Fedoseev
A few of these were unnecessarily added in 2b281cc35ed9d997614ca3c416928d7fabfef1ad.
2017-08-23Refs #28459 -- Improved performance of SQLCompiler.apply_converters().Sergey Fedoseev
2017-08-22Refs #28459 -- Improved performance of FlatValuesListIterable.Sergey Fedoseev
2017-08-21Fixed #28375 -- Fixed KeyError crash on reverse prefetch of a model with ↵Paulo
OneToOneField primary key to a non-pk field.
2017-08-15Simplified generation of result in Query.get_aggregation().Sergey Fedoseev
2017-08-15Simplified RelatedPopulator.populate().Sergey Fedoseev
2017-08-15Removed redundant condition in QuerySet.resolve_expression().Sergey Fedoseev
2017-08-15Avoided creation of temporary set in Query.append_annotation_mask().Sergey Fedoseev
2017-08-12Fixed #27849 -- Added filtering support to aggregates.Tom
2017-08-11Refs #28459 -- Improved performance of BaseExpression.convert_value().Sergey Fedoseev