summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
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-07Renamed the allow_sliced_subqueries database feature to ↵Mariusz Felisiak
allow_sliced_subqueries_with_in. After 0899d583bdb140910698d00d17f5f1abc8774b07 this database feature is false only on MySQL which doesn't support sliced subqueries only with IN/ALL/ANY/SOME.
2018-02-05Refs #28814 -- Fixed migrations crash with namespace packages on Python 3.7.Tim Graham
Due to https://bugs.python.org/issue32303.
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-31Removed uneeded comment in DatabaseWrapper.check_constraints() on ↵Mariusz Felisiak
SQLite/MySQL backends.
2018-01-31Fixed #29066 -- Allowed negating query expressions.priyanshsaxena
2018-01-31Fixed #29093 -- Simplified a few lines in ModelBase.__new__().Дилян Палаузов
2018-01-31Fixed #29091 -- Fixed makemigrations crash if migrations directory doesn't ↵Tim Graham
have __init__.py. Regression in aadd3aeb2ba3153e35bd805c80c901f289a6f333.
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 #29004 -- Added inspectdb --include-views option.bquinn
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 #28542 -- Fixed deletion of primary key constraint if the new field is ↵Tim Martin
unique.
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-09Added DatabaseFeatures.is_postgresql_9_5 to avoid repetition.Tim Graham
2018-01-06Fixed #28859 -- Made Oracle backend raise DatabaseError if "no data found" ↵Mariusz Felisiak
exception is hidden by the Oracle OCI library. Thanks Tim Graham for the review and Jani Tiainen for the report.
2018-01-04Refs #28459 -- Improved performance of duration expressions on SQLite.Sergey Fedoseev
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().Дилян Палаузов
2018-01-03Fixed #28867 -- Added system check for a model property that clashes with a ↵shanghui
related field accessor.
2018-01-03Fixed #28811 -- Fixed crash when combining regular and group by annotations.Robin Ramael
2018-01-02Removed DeferredAttribute.__init__()'s unused model argument.Mariusz Felisiak
Unused since a8a81aae20a81e012fddc24f3ede556501af64a2.
2018-01-02Fixed #28974 -- Made refresh_from_db() hint routers about its instance.Simon Charette
2017-12-30Fixed #28918 -- Fixed Model.refresh_from_db() for instances hidden by the ↵Tim Graham
default manager.
2017-12-30Fixed #25817 -- Made RenameField repoint to_field/to_fields references.Simon Charette
Also updated the autodetector to assume the RenameField operation will perform the required repointing.
2017-12-30Moved _get_model_tuple() to the base Operation class.Simon Charette
This allows field and special operations to use this logic.
2017-12-30Used Decimal.scaleb() in backends.utils.format_number() and ↵Mariusz Felisiak
DecimalField.widget_attrs() to improve performance.
2017-12-29Bumped minimum supported mysqlclient version to 1.3.7.Sergey Fedoseev
Follow up to ad9390bba27cb41da92f734db4d0e36ef3dfc58f.
2017-12-29Refs #28459 -- Used default date converter on SQLite for better performance.Sergey Fedoseev
See https://docs.python.org/3/library/sqlite3.html#default-adapters-and-converters.
2017-12-28Fixed #28926 -- Fixed loss of precision of big DurationField values on ↵Sergey Fedoseev
SQLite and MySQL.
2017-12-28Removed unnecessary trailing commas and spaces in various code.Mariusz Felisiak
2017-12-27Fixed #28967 -- Prevented Cast to FloatField from rounding to integer on MySQL.Sergey Fedoseev
2017-12-27Fixed #28714 -- Added system checks for invalid model field names in ↵hui shang
Meta.indexes. Thanks Gabriel for the report and Adam Johnson for the review.
2017-12-27Refs #28459 -- Improved performance of loading DurationField on SQLite and ↵Sergey Fedoseev
MySQL.
2017-12-27Removed unused variable in QuerySet._earliest_or_latest().Mads Jensen
2017-12-26Refs #28459 -- Improved performance of loading DecimalField on SQLite.Sergey Fedoseev
2017-12-26Fixed #28930 -- Simplified code with any() and all().Дилян Палаузов