summaryrefslogtreecommitdiff
path: root/django/db/models
AgeCommit message (Collapse)Author
2017-10-13Refs #28643 -- Reorganized database functions.Mariusz Felisiak
Thanks Tim Graham for the review.
2017-10-13Refs #28575 -- Allowed pickling Model.DoesNotExist and ↵Rachel Tobin
MultipleObjectsReturned classes.
2017-10-12Fixed #27846 -- Made Model.refresh_from_db() clear cached relations.Paulo
2017-10-09Fixed #28670 -- Added FETCH/OFFSET support on Oracle.Mariusz Felisiak
Thanks Tim Graham for the review.
2017-10-06Refs #24254 -- Removed unnecessary SQL AS clause in SQLCompiler.as_sql().Mariusz Felisiak
Incorrect on Oracle.
2017-10-06Fixed #28665 -- Change some database exceptions to NotImplementedError per ↵Simon Charette
PEP 249.
2017-10-04Refs #28670 -- Moved LIMIT/OFFSET SQL to DatabaseOperations.limit_offset_sql().Mariusz Felisiak
Thanks Tim Graham for the review.
2017-10-03Fixed #28674 -- Removed unused check in QuerySet._batched_insert().Tim Graham
2017-10-03Fixed #28675 -- Removed always True variable in ↵Tim Graham
SQLInsertCompiler.execute_sql() check. Unused since 7deb25b8dd5aa1ed02b5e30cbc67cd1fb0c3d6e6.
2017-10-02Fixed #28652 -- Fixed a few comments in django/db/models/*.Дилян Палаузов
2017-10-02Refs #23919 -- Removed unneeded float()/int() calls.Mariusz Felisiak
2017-09-29Refs #28492 -- Defined aggregates' output_field at the class level.Simon Charette
Missed in 08654a99bbdd09049d682ae57cc94241534b29f0.
2017-09-28Merged hash() calls.Mariusz Felisiak
Thanks Simon Charette for the review.
2017-09-28Simplified various __eq__() methods.Mads Jensen
2017-09-25Fixed #27857 -- Dropped support for Python 3.4.Tim Graham
2017-09-22Refs #27532 -- Removed Model._meta.has_auto_field per deprecation timeline.Tim Graham
2017-09-22Refs #18974 -- Removed @models.permalink() decorator per deprecation timeline.Tim Graham
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