summaryrefslogtreecommitdiff
path: root/django/db/models
AgeCommit message (Collapse)Author
2018-04-16Fixed #29330 -- Fixed crash when pickling BaseExpression.Daniel Miller
Regression in cfff2af02be40106d4759cc6f8bfa476ce82421c.
2018-04-13Fixed #29286 -- Fixed column mismatch crash with QuerySet.values() or ↵Mariusz Felisiak
values_list() after combining an annotated and unannotated queryset with union(), difference(), or intersection(). Regression in a0c03c62a8ac586e5be5b21393c925afa581efaf. Thanks Tim Graham and Carlton Gibson for reviews.
2018-04-12Fixed #29320 -- Added an exception when an annotation alias matches a ↵Flávio Juvenal
ForeignKey attname.
2018-04-04Fixed #25718 -- Made a JSONField lookup value of None match keys that have a ↵Dmitry Dygalo
null value.
2018-04-03Refs #28643 -- Added Repeat database function.Mariusz Felisiak
Thanks Tim Graham and Nick Pope for reviews.
2018-04-03Fixed #29251 -- Added bytes to str conversion in LPad/RPad database ↵Mariusz Felisiak
functions on MySQL. Thanks Tim Graham for the review.
2018-03-20Refs #29227 -- Simplified NullBooleanField by making it subclass BooleanField.Nick Pope
2018-03-20Fixed #29227 -- Allowed BooleanField to be null=True.Tim Graham
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
2018-03-19Fixed #29229 -- Fixed column mismatch crash when combining two annotated ↵Astral
values_list() querysets with union(), difference(), or intersection(). Regression in 7316720603821ebb64dfe8fa592ba6edcef5f3e.
2018-03-19Refs #28643 -- Added LPad and RPad database functions.Mariusz Felisiak
Thanks Tim Graham for the review.
2018-03-17Removed unused args in Index.clone().Mads Jensen
2018-03-15Refs #28643 -- Added LTrim, RTrim, and Trim database functions.Mariusz Felisiak
Thanks Tim Graham and Mads Jensen for reviews.
2018-03-14Fixed #29155 -- Fixed crash when database functions are used with pattern ↵Mariusz Felisiak
lookups. Thanks Tim Graham and Sergey Fedoseev for reviews.
2018-03-12Fixed #28988 -- Fixed queries when a GenericRelation is used with ↵robwa
multi-table inheritance.
2018-03-12Added PatternLookup.prepare_rhs to simplify subclasses.Simon Charette
2018-03-08Fixed #29195 -- Fixed Exists.output_field resolution on single-valued queries.Simon Charette
The Subquery class which Exists inherits from defaulted to using single-valued querie's field if no output_field was explicitly specified on initialization which was bypassing the Exists.output_field defined at the class level. Moving Subquery's dynamic output_field resolution to _resolve_output_field should make sure the fallback logic is only performed if required. Regression in 08654a99bbdd09049d682ae57cc94241534b29f0. Thanks Oli Warner for the detailed report.
2018-03-08Fixed #29178 -- Allowed Index.fields to accept a tuple.Fabrizio Ettore Messina
2018-03-07Simplified Contains, StartsWith, and EndsWith lookups.Mariusz Felisiak
2018-03-03Added model name to AutoField error message.Almad
2018-03-01Fixed #29172 -- Fixed crash with Window expression in a subquery.Tomáš Ehrlich
2018-02-28Fixed #29166 -- Fixed crash in When() expression with a list argument.Mariusz Felisiak
Thanks Matthew Pava for the report and Tim Graham and Carlton Gibson for reviews. Regression in 19b2dfd1bfe7fd716dd3d8bfa5f972070d83b42f.
2018-02-26Refs #28909 -- Simplifed code using unpacking generalizations.Mariusz Felisiak
2018-02-23Refs #28643 -- Added Ord, Chr, Left, and Right database functions.bobort
2018-02-23Fixed #29142 -- Fixed crash when OuterRef is used with an operator.Matthew Schinckel
2018-02-20Fixed #28442 -- Fixed crash with nested OuterRefs that reference AutoField.Oliver Sauder
2018-02-12Refs #29125 -- Made Q.deconstruct() omit 'query_utils' in the path and ↵Tim Graham
_connector='AND' since it's a default value.
2018-02-12Fixed #29125 -- Made Q.deconstruct() deterministic with multiple keyword ↵Tim Graham
arguments.
2018-02-10Fixed #24747 -- Allowed transforms in QuerySet.order_by() and distinct(*fields).Matthew Wilkes
2018-02-10Fixed #29118 -- Fixed crash with QuerySet.order_by(Exists(...)).Raphael Gaschignard
2018-02-08Fixed #29108 -- Fixed crash in aggregation of distinct+ordered+sliced querysets.Simon Charette
Regression in 4acae21846f6212aa992763e587c7e201828d7b0. Thanks Stephen Brooks for the report.
2018-02-05Refs #28814 -- Imported from collections.abc to fix Python 3.7 deprecation ↵Raymond Hettinger
warnings. https://bugs.python.org/issue25988
2018-02-05Refs #28723 -- Fixed stale prefetch_related cache after add/remove.Jon Dufresne
Regression in 514b2c989a948e3c59bda0da0c9427acf643cf5b.
2018-02-02Fixed imports per isort 4.3.1.Tim Graham
Partially reverted 9bcf73d788866bc93f8248cb2e9d601ecbc4b50c.
2018-02-01Fixed imports per isort 4.3.0.Mariusz Felisiak
2018-01-31Fixed #29066 -- Allowed negating query expressions.priyanshsaxena
2018-01-31Fixed #29093 -- Simplified a few lines in ModelBase.__new__().Дилян Палаузов
2018-01-30Fixed #29076 -- Made Model.refresh_from_db() clear cached relationships even ↵Jon Dufresne
if the related id doesn't change.
2018-01-27Fixed #28650 -- Added TruncWeek database function.Sigurd Ljødal
2018-01-27Refs #28748 -- Reallowed lazy values in model field choices.François Freitag
Regression in f9844f484186fa13399bf8b96f58616687fe158a. Thanks Matthias Kestenholz for the report and suggestions.
2018-01-26Fixed #29067 -- Fixed regression in QuerySet.values_list(..., flat=True) ↵Jon Dufresne
followed by annotate().
2018-01-25Fixed #28838 -- Fixed Model.save() crash if the base manager annotates with ↵shanghui
a related field.
2018-01-24Fixed #28748 -- Made model field choices check more strict for named groups.François Freitag
2018-01-17Refs #28643 -- Added Replace database function.Mads Jensen
2018-01-17Fixed #28857 -- Fixed invalid SQL when using Cast with complex expressions ↵hayashi
on PostgreSQL.
2018-01-13Fixed #29016 -- Fixed incorrect foreign key nullification on related ↵Étienne Loks
instance deletion.
2018-01-12Removed Query.split_exclude()'s unused prefix argument.Mariusz Felisiak
Unused since b4492a8ca4a7ae4daa3a6b03c3d7a845fad74931.
2018-01-12Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵Дилян Палаузов
continue statements.
2018-01-03Fixed #28982 -- Simplified code with and/or.Дилян Палаузов
2018-01-03Fixed #28984 -- Made assorted code simplifications.Tim Graham
2018-01-03Fixed #28985 -- Removed unneeded None checks before hasattr().Дилян Палаузов