| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-08-04 | Fixed typos in migrations tests, comments, and error message. | Jacob Walls | |
| 2021-07-30 | Refs #32966 -- Refactored out DateTimeCheckMixin._check_if_value_fixed(). | Chris Jerdonek | |
| 2021-07-30 | Refs #32966 -- Simplified the _check_fix_default_value() implementations. | Chris Jerdonek | |
| 2021-07-30 | Refs #32966 -- Added _to_naive() and _get_naive_now() for use in ↵ | Chris Jerdonek | |
| DateTimeCheckMixin classes. | |||
| 2021-07-30 | Fixed #32966 -- Fixed TimeField.check() crash for timezone-aware times in ↵ | Chris Jerdonek | |
| default when USE_TZ = True. | |||
| 2021-07-28 | Refs #32946 -- Changed internal usage of dynamic Q() objects construction to ↵ | Keryn Knight | |
| use non-kwargs initialization. This prefers non-kwargs construction of dynamically generated Q() objects to create a single Q() object instead of many and then combining them, where possible. | |||
| 2021-07-28 | Refs #32946 -- Changed Query.add_filter() to take two arguments. | Keryn Knight | |
| 2021-07-28 | Optimized BaseDatabaseSchemaEditor._effective_default() a bit, | Chris Jerdonek | |
| This eliminates an unneeded call to datetime.now() when field.get_internal_type() equals "DateTimeField". | |||
| 2021-07-27 | Refs #32962 -- Simplified NULL logic in ↵ | Chris Jerdonek | |
| BaseDatabaseSchemaEditor._iter_column_sql(). | |||
| 2021-07-27 | Fixed #32962 -- Consolidated string concatenations in ↵ | Chris Jerdonek | |
| BaseDatabaseSchemaEditor.column_sql(). | |||
| 2021-07-27 | Refs #32956 -- Changed "afterwards" to "afterward" in docs and comments. | David Smith | |
| This also removes unnecessary comments with the previous spelling. AP Stylebook has a short entry to advise the preferred spelling for "en-us". "Afterwards" is preferred in British English. | |||
| 2021-07-27 | Refs #32743 -- Fixed recreation of foreign key constraints when altering ↵ | Jordan Bae | |
| type of referenced primary key with MTI. Follow up to 325d7710ce9f6155bb55610ad6b4580d31263557. | |||
| 2021-07-26 | Fixed #32743 -- Added foreign key altering when altering type of referenced ↵ | David Wobrock | |
| primary key with MTI. | |||
| 2021-07-26 | Fixed #32947 -- Fixed hash() crash on reverse M2M relation when ↵ | Tom Wojcik | |
| through_fields is a list. Regression in c32d8f33d8e988a376e44997b8f3606d821f305e. | |||
| 2021-07-22 | Fixed #32951 -- Removed Query.where_class & co. | Nick Pope | |
| Unused since 3caf957ed5eaa831a485abcb89f27266dbf3e82b. | |||
| 2021-07-20 | Fixed #32704 -- Fixed list of deferred fields when chaining QuerySet.defer() ↵ | David Wobrock | |
| after only(). | |||
| 2021-07-20 | Fixed #32944 -- Avoided unnecessary WhereNode.add() calls. | Keryn Knight | |
| Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2021-07-19 | Fixed #10929 -- Added default argument to aggregates. | Nick Pope | |
| Thanks to Simon Charette and Adam Johnson for the reviews. | |||
| 2021-07-16 | Prevented SQLCompiler.execute_sql() from closing cursor twice. | Nick Pope | |
| cursor_iter() helper calls cursor.close() in a finally block. | |||
| 2021-07-15 | Refs #32508 -- Raised Type/ValueError instead of using "assert" in ↵ | Daniyal | |
| django.db.models. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2021-07-12 | Refs #32074 -- Used Enum.repr() format proposed for Python 3.10. | Mariusz Felisiak | |
| The Python's Steering Council decided to revert changes in the Enum module (see https://bugs.python.org/issue44559) and moved them to Python 3.11. Follow up to 5d9b065d3f93de056588dfee6f1776294dd8bab2. Thanks Nick Pope for the review. | |||
| 2021-07-09 | Fixed #27021 -- Allowed lookup expressions in annotations, aggregations, and ↵ | Ian Foote | |
| QuerySet.filter(). Thanks Hannes Ljungberg and Simon Charette for reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2021-07-08 | Fixed #32908 -- Allowed select_for_update(skip_locked) on MariaDB 10.6+. | Mariusz Felisiak | |
| 2021-07-07 | Fixed #32840 -- Optimized Field.get_col(). | Keryn Knight | |
| get_col() used "self" as "output_field" when it was not given, and unnecessarily compared "self" to "self". Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2021-07-07 | Fixed inspectdb and schema tests on MariaDB 10.6+. | Mariusz Felisiak | |
| The utf8 character set (and related collations) is by default an alias for utf8mb3 on MariaDB 10.6+. | |||
| 2021-07-05 | Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using "assert". | Mateo Radman | |
| 2021-07-05 | Fixed #32226 -- Fixed JSON format of QuerySet.explain() on PostgreSQL. | Wu Haotian | |
| 2021-07-02 | Fixed #30934 -- Included database alias in django.db.backends log messages. | Nick Pope | |
| This is useful when working with database routing as you want to know where each query is being executed. Co-authored-by: David Winterbottom <david.winterbottom@gmail.com> | |||
| 2021-07-02 | Refs #26430 -- Re-introduced empty aggregation optimization. | Simon Charette | |
| The introduction of the Expression.empty_aggregate_value interface allows the compilation stage to enable the EmptyResultSet optimization if all the aggregates expressions implement it. This also removes unnecessary RegrCount/Count.convert_value() methods. Disabling the empty result set aggregation optimization when it wasn't appropriate prevented None returned for a Count aggregation value. Thanks Nick Pope for the review. | |||
| 2021-07-02 | Fixed #26430 -- Fixed coalesced aggregation of empty result sets. | Simon Charette | |
| Disable the EmptyResultSet optimization when performing aggregation as it might interfere with coalescence. | |||
| 2021-07-01 | Fixed #32893 -- Fixed serialization of models.Model class in migrations. | abhiabhi94 | |
| Migrations assumed that an import of the models.Model class must already be included when it's serialized, but for models with only custom fields this was not necessarily the case. Thanks Jaap Joris Vens for the report. | |||
| 2021-06-30 | Fixed #32786 -- Moved subquery ordering clearing optimization to the _in lookup. | Hannes Ljungberg | |
| Co-Authored-By: Simon Charette <charette.s@gmail.com> | |||
| 2021-06-30 | Refs #32786 -- Made Query.clear_ordering() not to cause side effects by default. | Hannes Ljungberg | |
| 2021-06-29 | Refs #29898 -- Moved state_forwards()'s logic from migration operations to ↵ | manav014 | |
| ProjectState. Thanks Simon Charette and Markus Holtermann for reviews. | |||
| 2021-06-29 | Fixed #32381 -- Made QuerySet.bulk_update() return the number of objects ↵ | abhiabhi94 | |
| updated. Co-authored-by: Diego Lima <diego.lima@lais.huol.ufrn.br> | |||
| 2021-06-22 | Fixed #32863 -- Skipped system check for specifying type of auto-created ↵ | Hasan Ramezani | |
| primary keys on models with invalid app_label. Regression in b5e12d490af3debca8c55ab3c1698189fdedbbdb. Thanks Iuri de Silvio for the report. | |||
| 2021-06-22 | Refs #29898 -- Moved django.db.migrations.operations.utils to ↵ | manav014 | |
| django.db.migrations.utils. | |||
| 2021-06-22 | Refs #32858, Refs #32392 -- Restored using :: shortcut syntax in Cast() on ↵ | Mariusz Felisiak | |
| PostgreSQL. This partly reverts commit fdfbc66331292def201c9344e3cd29fbcbcd076a unnecessary since b69b0c3fe871167a0ca01bb439508e335143801f. | |||
| 2021-06-15 | Fixed #30427, Fixed #16176 -- Corrected setting descriptor in ↵ | Carlton Gibson | |
| Field.contribute_to_class(). Co-authored-by: Jarek Glowacki <jarekwg@gmail.com> | |||
| 2021-06-10 | Fixed #32832 -- Fixed adding BLOB/TEXT nullable field with default on MySQL ↵ | Mariusz Felisiak | |
| 8.0.13+. Regression in d4ac23bee1c84d8e4610350202ac068fc90f38c0. Thanks Omkar Deshpande for the report. | |||
| 2021-06-08 | Fixed #25255 -- Recorded unapplied squashed migrations. | Jacob Walls | |
| 2021-06-04 | Fixed #32812 -- Restored immutability of named values from ↵ | Takayuki Hirayama | |
| QuerySet.values_list(). Regression in 981a072dd4dec586f8fc606712ed9a2ef116eeee. Thanks pirelle for the report. | |||
| 2021-06-01 | Fixed #32793 -- Fixed loss of precision for temporal operations with ↵ | Mariusz Felisiak | |
| DecimalFields on MySQL. Regression in 1e38f1191de21b6e96736f58df57dfb851a28c1f. Thanks Mohsen Tamiz for the report. | |||
| 2021-05-29 | Fixed typos in comments and docs. | David Sanders | |
| 2021-05-28 | Fixed #32676 -- Prevented migrations from rendering related field attributes ↵ | David Wobrock | |
| when not passed during initialization. Thanks Simon Charette for the implementation idea. | |||
| 2021-05-28 | Refs #32779 -- Changed ↵ | Hannes Ljungberg | |
| DatabaseSchemaEditor._unique_sql()/_create_unique_sql() to take fields as second parameter. | |||
| 2021-05-25 | Fixed #32780 -- Made Add/RemoveConstraint operations a noop for ↵ | Hannes Ljungberg | |
| covering/deferrable unique constraints on SQLite. | |||
| 2021-05-24 | Refs #24121 -- Added __repr__() to Lookup. | saeedblanchette | |
| 2021-05-24 | Refs #24121 -- Improved Value.__repr__(). | Mariusz Felisiak | |
| 2021-05-24 | Fixed #32777 -- Passed table reference as a string to ↵ | Hannes Ljungberg | |
| DatabaseSchemaEditor._index_columns(). | |||
