| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2023-10-30 | Fixed #34932 -- Restored varchar_pattern_ops/text_pattern_ops index creation ↵ | Tom Carrick | |
| when deterministic collaction is set. Regression in f3f9d03edf17ccfa17263c7efa0b1350d1ac9278 (4.2) and 8ed25d65ea7546fafd808086fa07e7e5bb5428fc (5.0). | |||
| 2023-10-28 | Refs #29850 -- Added RowRange support for positive integer start and ↵ | Sarah Boyce | |
| negative integer end. | |||
| 2023-10-23 | Fixed #34899 -- Added blank choice to forms' callable choices lazily. | Nick Pope | |
| 2023-10-23 | Refs #34899 -- Extracted Field.flatchoices to flatten_choices helper function. | Nick Pope | |
| Co-authored-by: Natalia Bidart <124304+nessita@users.noreply.github.com> | |||
| 2023-10-22 | Fixed #34921 -- Fixed crash of warning for unbound naive datetimes. | David Sanders | |
| 2023-10-16 | Fixed #34798 -- Fixed QuerySet.aggregate() crash when referencing ↵ | Simon Charette | |
| expressions containing subqueries. Regression in 59bea9efd2768102fc9d3aedda469502c218e9b7, complements e5c844d6f2a4ac6ae674d741b5f1fa2a688cedf4. Refs #28477, #34551. Thanks Haldun Komsuoglu for the report. | |||
| 2023-10-06 | Fixed #34889 -- Fixed get_prefetch_queryset() fallback in prefetch_one_level(). | Mariusz Felisiak | |
| Thanks Matt Westcott for the report. Regression in cac94dd8aa2fb49cd2e06b5b37cf039257284bb0. | |||
| 2023-10-04 | Refs #33482 -- Fixed QuerySet selecting and filtering againts Exists() with ↵ | Simon Charette | |
| empty queryset. Thanks Tobias Bengfort for the report. | |||
| 2023-09-28 | Fixed #34877 -- Fixed migrations crash when adding GeneratedField with ↵ | Paolo Melchiorre | |
| output_field with params. | |||
| 2023-09-26 | Fixed #34873 -- Added QuerySet.explain() support for GENERIC_PLAN option on ↵ | Mariusz Felisiak | |
| PostgreSQL 16+. | |||
| 2023-09-25 | Refs #34825 -- Made SQLite backend open source database in readonly mode ↵ | David Sanders | |
| when using spawn. | |||
| 2023-09-25 | Fixed #34849 -- Avoided raising RuntimeWarning about import-time queries ↵ | David Sanders | |
| when apps are reinitialized with test tools. Regression in fbd16438f46bc2128926958ad24331da5d1b406f. | |||
| 2023-09-22 | Fixed #34861 -- Fixed crash when adding GeneratedField with some expressions. | Paolo Melchiorre | |
| Co-authored-by: Simon Charette <charette.s@gmail.com> | |||
| 2023-09-22 | Fixed #34858 -- Corrected resolving output_field for PositiveIntegerField. | toan | |
| Regression in 40b8a6174f001a310aa33f7880db0efeeb04d4c4. | |||
| 2023-09-22 | Fixed #34840 -- Avoided casting string base fields on PostgreSQL. | Mariusz Felisiak | |
| Thanks Alex Vandiver for the report. Regression in 09ffc5c1212d4ced58b708cbbf3dfbfb77b782ca. | |||
| 2023-09-20 | Fixed #34851 -- Dropped support for PostgreSQL 12 and PostGIS 2.5. | Mariusz Felisiak | |
| 2023-09-19 | Fixed #34850 -- Dropped support for MariaDB 10.4. | Mariusz Felisiak | |
| 2023-09-19 | Simplified ForeignObject.resolve_related_fields() a bit. | Lily Foote | |
| 2023-09-18 | Refs #33308 -- Removed support for passing encoded JSON string literals to ↵ | Mariusz Felisiak | |
| JSONField & co. Per deprecation timeline. | |||
| 2023-09-18 | Refs #33872 -- Removed ↵ | Mariusz Felisiak | |
| django.contrib.postgres.fields.CIText/CICharField/CIEmailField/CITextField. Per deprecation timeline. | |||
| 2023-09-18 | Refs #27236 -- Removed Meta.index_together per deprecation timeline. | Mariusz Felisiak | |
| 2023-09-18 | Fixed #33651 -- Added support for prefetching GenericForeignKey. | Clément Escolano | |
| Co-authored-by: revanthgss <revanthgss@almabase.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2023-09-16 | Fixed #34842 -- Fixed ModelAdmin.readonly_fields crash with GeneratedFields. | Paolo Melchiorre | |
| 2023-09-14 | Fixed #34838 -- Corrected output_field of resolved columns for GeneratedFields. | Paolo Melchiorre | |
| Thanks Simon Charette for the implementation idea. | |||
| 2023-09-14 | Fixed #24561 -- Added support for callables on model fields' choices. | Natalia | |
| 2023-09-13 | Fixed #34822 -- Added support for serializing functions decorated with ↵ | Nick Pope | |
| functools.lru_cache in migrations. `@functools.cache` and `@functools.lru_cache` return an object of type `functools._lru_cache_wrapper` which prevented the migrations serializer from working. Simply using the existing `FunctionTypeSerializer` for this additional type works as expected. | |||
| 2023-09-13 | Modernized enumeration helpers on Python 3.11+. | Nick Pope | |
| - use @enum.property https://docs.python.org/3/library/enum.html#enum.property - use @enum.nonmember Using @property on an enum class does not yield the expected result. do_not_call_in_templates attribute works because a @property instance is truthy. We can make this a literal True value as expected by using @enum.nonmember in Python 3.11+. https://docs.python.org/3/library/enum.html#enum.nonmember - used enum.IntEnum/StrEnum Python 3.11+ has ReprEnum which uses int.__str__() and str.__str__() for __str__() in the `IntEnum` and `StrEnum` subclasses. We can emulate that for Python < 3.11. https://docs.python.org/3/library/enum.html#enum.ReprEnum https://docs.python.org/3/library/enum.html#enum.IntEnum https://docs.python.org/3/library/enum.html#enum.StrEnum | |||
| 2023-09-13 | Refs #34233 -- Used @staticmethod with TextChoices._generate_next_value_(). | Nick Pope | |
| Now that Python 3.10 is the minimum supported version, we can decorate _generate_next_value_() with @staticmethod. It wasn't possible before as Python < 3.10 does not support calling static methods direct from the class body. https://docs.python.org/3/library/enum.html#enum.Enum._generate_next_value_ | |||
| 2023-09-12 | Renamed ChoicesMeta to ChoicesType. | Nick Pope | |
| This also uses enum.EnumType for Python 3.11+ as Python 3.11 renamed EnumMeta to EnumType. While the former is still available as an alias of the latter for now, let's prefer the canonical name for this. Check out https://docs.python.org/3/library/enum.html#enum.EnumType | |||
| 2023-09-12 | Removed ChoicesMeta.__contains__() for Python 3.12+. | Nick Pope | |
| In Python 3.12 it is possible to check containment using member values, not just the members themselves. https://docs.python.org/3/library/enum.html#enum.EnumType.__contains__ | |||
| 2023-09-11 | Fixed #34824 -- Prevented unnecessary AlterField when ↵ | donghao | |
| ForeignObject.from_fields/to_fields is not a tuple. | |||
| 2023-09-09 | Fixed #34820 -- Fixed migrations crash when changing a ForeignObject field. | donghao | |
| 2023-09-07 | Fixed #34791 -- Fixed incorrect Prefetch()'s cache for singly related objects. | Maxime Toussaint | |
| Changed the cache name used for singly related objects to be the to_attr parameter passed to a Prefetch object. This fixes issues with checking if values have already been fetched in cases where the Field already has some prefetched value, but not for the same model attr. | |||
| 2023-09-07 | Fixed #31300 -- Added GeneratedField model field. | Jeremy Nauta | |
| Thanks Adam Johnson and Paolo Melchiorre for reviews. Co-Authored-By: Lily Foote <code@lilyf.org> Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2023-09-01 | Fixed #34803 -- Fixed queryset crash when filtering againts deeply nested ↵ | willzhao | |
| OuterRef annotations. Thanks Pierre-Nicolas Rigal for the report. Regression in c67ea79aa981ae82595d89f8018a41fcd842e7c9. | |||
| 2023-08-31 | Fixed #34547 -- Deprecated DatabaseOperations.field_cast_sql(). | David Smith | |
| 2023-08-30 | Fixed #31262 -- Added support for mappings on model fields and ↵ | Nick Pope | |
| ChoiceField's choices. | |||
| 2023-08-30 | Fixed #34799 -- Made MySQL introspection skip cross-database relations. | John Whitman | |
| 2023-08-25 | Simplified QuerySet.update_or_create() a bit. | Muzaffer Cikay | |
| 2023-08-23 | Fixed #34744 -- Prevented recreation of migration for constraints with a ↵ | David Sanders | |
| dict_keys. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2023-08-21 | Fixed #33143 -- Raised RuntimeWarning when performing import-time queries. | Florian Zimmermann | |
| 2023-08-20 | Fixed DatabaseCreation.get_test_db_clone_settings() for empty database name ↵ | Mariusz Felisiak | |
| on SQLite. Empty string should be considered an in-memory SQLite database. | |||
| 2023-08-11 | Fixed #34362 -- Fixed FilteredRelation() crash on conditional expressions. | Francesco Panico | |
| Thanks zhu for the report and Simon Charette for reviews. | |||
| 2023-08-11 | Fixed #34743 -- Fixed Meta.constraints validation crash when using pk. | Francesco Panico | |
| Thanks Nwawel A Iroume for the report. | |||
| 2023-08-10 | Fixed #33817 -- Added support for python-oracledb and deprecated cx_Oracle. | Jingbei Li | |
| 2023-08-10 | Fixed DatabaseFeatures.supports_primitives_in_json_field on Oracle 21c+. | Mariusz Felisiak | |
| 2023-08-09 | Refs #34233 -- Bumped required cx_Oracle to 8.3. | Mariusz Felisiak | |
| This bumps minimum supported versions of cx_Oracle to the first release to support Python 3.10. | |||
| 2023-08-09 | Fixed #34586 -- Made QuerySet.create() raise ValueError for reverse ↵ | Mariana | |
| one-to-many relations. | |||
| 2023-08-04 | Fixed #34754 -- Fixed JSONField check constraints validation on NULL values. | Simon Charette | |
| The __isnull lookup of JSONField must special case Value(None, JSONField()) left-hand-side in order to be coherent with its convoluted null handling. Since psycopg>=3 offers no way to pass a NULL::jsonb the issue is resolved by optimizing IsNull(Value(None), True | False) to True | False. Regression in 5c23d9f0c32f166c81ecb6f3f01d5077a6084318. Thanks Alexandre Collet for the report. | |||
| 2023-08-04 | Fixed #34760 -- Dropped support for SQLite < 3.27. | Mariusz Felisiak | |
