| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2020-12-16 | Fixed #32089 -- Fixed prefetch_related_objects() when some objects are ↵ | Alexey Nigin | |
| already fetched. Thanks Dennis Kliban for the report and Adam Johnson for the initial patch. Co-authored-by: Adam Johnson <me@adamj.eu> | |||
| 2020-12-15 | Fixed #31007 -- Allowed specifying type of auto-created primary keys. | Tom Forbes | |
| This also changes the default type of auto-created primary keys for new apps and projects to BigAutoField. | |||
| 2020-12-11 | Fixed #32252 -- Fixed __isnull=True on key transforms on SQLite and Oracle. | sage | |
| __isnull=True on key transforms should not match keys with NULL values. | |||
| 2020-12-11 | Refs #32178 -- Changed BaseDatabaseFeatures.django_test_expected_failures to ↵ | Hasan Ramezani | |
| set(). | |||
| 2020-12-10 | Fixed #32178 -- Allowed database backends to skip tests and mark expected ↵ | Hasan Ramezani | |
| failures. Co-authored-by: Tim Graham <timograham@gmail.com> | |||
| 2020-12-08 | Fixed #32233 -- Cleaned-up duplicate connection functionality. | Florian Apolloner | |
| 2020-12-07 | Removed lhs_only argument from KeyTransform.preprocess_lhs(). | sage | |
| 2020-12-02 | Fixed #32179 -- Added JSONObject database function. | Artur Beltsov | |
| 2020-11-27 | Fixed #32220 -- Added durable argument to transaction.atomic(). | Ian Foote | |
| 2020-11-27 | Fixed #25534, Fixed #31639 -- Added support for transform references in ↵ | Ian Foote | |
| expressions. Thanks Mariusz Felisiak and Simon Charette for reviews. | |||
| 2020-11-25 | Fixed #32203 -- Fixed QuerySet.values()/values_list() crash on key ↵ | sage | |
| transforms with non-string values on SQLite. Thanks Gordon Wrigley for the report. | |||
| 2020-11-25 | Fixed #32224 -- Avoided suppressing connection errors in supports_json_field ↵ | Mariusz Felisiak | |
| on SQLite.` Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd. Thanks Juan Garcia Alvite for the report. | |||
| 2020-11-24 | Simplified JSONField key transforms by using JSON_OBJECT() on Oracle. | Mariusz Felisiak | |
| 2020-11-19 | Fixed #32200 -- Fixed grouping by ExpressionWrapper() with Q objects. | Hasan Ramezani | |
| Thanks Gordon Wrigley for the report. Regression in df32fd42b84cc6dbba173201f244491b0d154a63. | |||
| 2020-11-19 | Fixed #32201 -- Removed obsolete isort:skip's. | Seamus Quinn | |
| Obsolete as of isort 5. | |||
| 2020-11-16 | Fixed #31507 -- Added QuerySet.exists() optimizations to compound queries. | David-Wobrock | |
| 2020-11-16 | Fixed #32197 -- Improved error message when loading a database backend fails. | Hasan Ramezani | |
| 2020-11-14 | Fixed #31496 -- Fixed QuerySet.values()/values_list() crash on combined ↵ | David-Wobrock | |
| querysets ordered by annotations. | |||
| 2020-11-11 | Fixed #31762 -- Made reloading the database for tests use the base manager. | Hasan Ramezani | |
| Co-authored-by: Eugene Kulak <kulak.eugene@gmail.com> | |||
| 2020-11-10 | Fixed #32182 -- Fixed crash of JSONField nested key transforms with subquery ↵ | Hannes Ljungberg | |
| annotations on PostgreSQL. | |||
| 2020-11-04 | Fixed #31910 -- Fixed crash of GIS aggregations over subqueries. | Simon Charette | |
| Regression was introduced by fff5186 but was due a long standing issue. AggregateQuery was abusing Query.subquery: bool by stashing its compiled inner query's SQL for later use in its compiler which made select_format checks for Query.subquery wrongly assume the provide query was a subquery. This patch prevents that from happening by using a dedicated inner_query attribute which is compiled at a later time by SQLAggregateCompiler. Moving the inner query's compilation to SQLAggregateCompiler.compile had the side effect of addressing a long standing issue with aggregation subquery pushdown which prevented converters from being run. This is now fixed as the aggregation_regress adjustments demonstrate. Refs #25367. Thanks Eran Keydar for the report. | |||
| 2020-11-02 | Fixed #32132 -- Fixed column types in m2m intermediary tables for ↵ | David-Wobrock | |
| Positive(Big/Small)IntegerFields. | |||
| 2020-10-30 | Refs #32061 -- Prevented password leak on MySQL dbshell crash. | Simon Charette | |
| The usage of the --password flag when invoking the mysql CLI has the potential of exposing the password in plain text if the command happens to crash due to the inclusion of args provided to subprocess.run(check=True) in the string representation of the subprocess.CalledProcessError exception raised on non-zero return code. Since this has the potential of leaking the password to logging facilities configured to capture crashes (e.g. sys.excepthook, Sentry) it's safer to rely on the MYSQL_PWD environment variable instead even if its usage is discouraged due to potential leak through the ps command on old flavors of Unix. Thanks Charlie Denton for reporting the issue to the security team. Refs #24999. | |||
| 2020-10-29 | Refs #32061 -- Unified DatabaseClient.runshell() in db backends. | Simon Charette | |
| 2020-10-29 | Fixed #32152 -- Fixed grouping by subquery aliases. | Christian Klus | |
| Regression in 42c08ee46539ef44f8658ebb1cbefb408e0d03fe. Thanks Simon Charette for the review. | |||
| 2020-10-28 | Made small readability improvements. | Martin Thoma | |
| 2020-10-28 | Fixed #32143 -- Used EXISTS to exclude multi-valued relationships. | Simon Charette | |
| As mentioned in the pre-existing split_exclude() docstring EXISTS is easier to optimize for query planers and circumvents the IN (NULL) handling issue. | |||
| 2020-10-28 | Refs #27149 -- Fixed sql.Query identity. | Simon Charette | |
| By making Query subclass BaseExpression in 35431298226165986ad07e91f9d3aca721ff38ec the former defined it's identity based off _construct_args which is not appropriate. | |||
| 2020-10-27 | Improved naming consistency in BaseManage.contribute_to_class(). | Nguyen You | |
| Matches signatures of other contribute_to_class() methods. | |||
| 2020-10-26 | Fixed #29497 -- Fixed loss of assigned parent when saving child with ↵ | Hannes Ljungberg | |
| bulk_create() after parent. | |||
| 2020-10-23 | Fixed #32134 -- Fixed crash of __range lookup with namedtuple. | Adam Johnson | |
| Regression in 8be79984dce7d819879a6e594ca69c5f95a08378. Thanks Gordon Wrigley for the report. | |||
| 2020-10-22 | Replaced @no_oracle skips with DatabaseFeatures.allows_group_by_lob. | Tim Graham | |
| 2020-10-21 | Fixed #26390 -- Disabled grouping by Random(). | Étienne Beaulé | |
| Thanks to Tzu-ping Chung for the tests. | |||
| 2020-10-21 | Fixed #32046 -- Added CreateCollation/RemoveCollation operations for PostgreSQL. | Tom Carrick | |
| 2020-10-21 | Fixed #32126 -- Fixed grouping by Case() annotation without cases. | Hannes Ljungberg | |
| Co-authored-by: Simon Charette <charettes@users.noreply.github.com> | |||
| 2020-10-20 | Fixed #32120 -- Added DatabaseFeatures.indexes_foreign_keys. | Tim Graham | |
| 2020-10-19 | Fixed #32108 -- Made transaction.on_commit() raise TypeError when callback ↵ | Herbert Poul | |
| is not a callable. | |||
| 2020-10-19 | Fixed #32107 -- Fixed ProtectedError.protected_objects and ↵ | Hasan Ramezani | |
| RestrictedError.restricted_objects. Regression in 4ca5c565f4dc9e97845036e86416abc5cfde766c and ab3cbd8b9a315911248227208630a020cedca08f. Thanks Vitaliy Yelnik for the report. | |||
| 2020-10-19 | Fixed #32116 -- Fixed QuerySet.order_by() crash on EmptyQuerySet with ↵ | Hannes Ljungberg | |
| union() on a single non-empty ordered queryset. | |||
| 2020-10-17 | Fixed #6517 -- Made dbshell use charset option on MySQL. | manav014 | |
| Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2020-10-15 | Refs #32096 -- Made JSONField check respect Meta.required_db_vendor. | Mariusz Felisiak | |
| Thanks Simon Charette for the implementation idea. | |||
| 2020-10-15 | Fixed #25253 -- Made AlterField operation a noop when changing attributes ↵ | Çağıl Uluşahin | |
| that don't affect the schema. | |||
| 2020-10-14 | Refs #32096 -- Fixed ExpressionWrapper crash with JSONField key transforms. | Mariusz Felisiak | |
| Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd. Thanks Simon Charette and Igor Jerosimić for the report. | |||
| 2020-10-14 | Refs #32096 -- Fixed __in lookup crash against key transforms for JSONField. | Mariusz Felisiak | |
| Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd and 1251772cb83aa4106f526fe00738e51c0eb59122. Thanks Simon Charette and Igor Jerosimić for the report. | |||
| 2020-10-14 | Fixed #31640 -- Made Trunc() truncate datetimes to Date/TimeField in a ↵ | David-Wobrock | |
| specific timezone. | |||
| 2020-10-14 | Refs #31640 -- Made Extract raise ValueError when using tzinfo with ↵ | David-Wobrock | |
| Date/TimeField. | |||
| 2020-10-12 | Fixed #32098 -- Made FieldFile use FileField.attname. | Sultan | |
| After a93425a37f4defdb31d4ca96bb3bf6da21f0b5ce FileDescriptor is a subclass of DeferredAttribute and uses FileField.attname to access the field data, so that custom subclasses can not only save data to files, but also represent the same data with a different data type by attaching FileFiled.name to a particular descriptor. Follow up to a93425a37f4defdb31d4ca96bb3bf6da21f0b5ce. | |||
| 2020-10-06 | Refs #20577 -- Deferred filtering of prefetched related querysets by reverse ↵ | Bob Renwick | |
| m2o relation. | |||
| 2020-10-06 | Fixed #32073 -- Skipped collation tests on PostgreSQL < 10. | Mariusz Felisiak | |
| PostgreSQL < 10 doesn't support ICU collations. Thanks Hannes Ljungberg for the report. | |||
| 2020-10-05 | Refs #31926 -- Fixed reverse related identity crash on Q() limit_choices_to. | Simon Charette | |
