| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2023-11-22 | [5.0.x] Fixed #34985 -- Fixed GeneratedFields.contribute_to_class() crash ↵ | Mariusz Felisiak | |
| when apps are not populated. Thanks Paolo Melchiorre for the report. Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95. Backport of 101a85a5a06585ba16ecb25860146d034a8a55ec from main | |||
| 2023-11-14 | [5.0.x] Fixed #34944 -- Made GeneratedField.output_field required. | Mariusz Felisiak | |
| Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95. Backport of 5875f03ce61b85dfd9ad34f7b871c231c358d432 from main | |||
| 2023-11-02 | [5.0.x] Refs #31300 -- Allowed testing GeneratedField without collation. | Tim Graham | |
| CockroachDB and Snowflake don't support it. Backport of 208870b6122c4cbc39c3b2432e13db54c920db51 from main | |||
| 2023-09-28 | [5.0.x] Fixed #34877 -- Fixed migrations crash when adding GeneratedField ↵ | Paolo Melchiorre | |
| with output_field with params. Backport of e7e8eb44a30bcab004a582760752b5eb3fcd6e91 from main | |||
| 2023-09-22 | [5.0.x] Fixed JSONField's test_deep_distinct for ↵ | Tim Graham | |
| DatabaseFeatures.nulls_order_largest=False. Failure observed on CockroachDB. Backport of b0788a0918d0e12bc8878581d99adc3a79799f94 from main | |||
| 2023-09-19 | [5.0.x] Isolated test models for GeneratedFields. | Mariusz Felisiak | |
| Test regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95. Backport of 8af3ae4ad9ca475f2428fac950de8df56b575e6a from main | |||
| 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-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-08-30 | Fixed #31262 -- Added support for mappings on model fields and ↵ | Nick Pope | |
| ChoiceField's choices. | |||
| 2023-08-22 | Added tests for model field's choices iterator/iterable values. | Natalia | |
| 2023-06-19 | Refs #34517 -- Restored skipping ImageFileField.update_dimension_fields ↵ | François Freitag | |
| without width/height fields. This avoids reading the image size when the dimensions fields (image_width, image_height) do not exist, as that operation may be expensive. Partially reverts ea53e7c09f1b8864c20c65976bbeaeab77abdaec, that dropped the check for the dimension fields in update_dimension_fields(), because the post_init signal was no longer registered without dimension fields. However, another code path to that function exists: when the ImageFileField is save()d, the name from the storage is setattr()ed on the field, and ImageFileDescriptor calls update_dimension_fields() because the image size might have changed. Keep bailing out early when dimensions are unused. Besides, computing the image dimensions causes to close() the file, resulting in a backward-incompatible change. The test protects against that change. | |||
| 2023-05-24 | Fixed #34590 -- Reverted "Refs #33308 -- Improved adapting DecimalField ↵ | David Sanders | |
| values to decimal." This reverts 7990d254b0af158baf827fafbd90fe8e890f23bd. Thanks Marc Odermatt for the report. | |||
| 2023-05-16 | Fixed #34539 -- Restored get_prep_value() call when adapting JSONFields. | Julie Rymer | |
| Regression in 5c23d9f0c32f166c81ecb6f3f01d5077a6084318. | |||
| 2023-05-03 | Fixed #34517 -- Avoided connection post_init signal to ImageField without ↵ | Orhan Hirsch | |
| width/height fields. | |||
| 2023-03-21 | Fixed #34388 -- Allowed using choice enumeration types directly on model and ↵ | T. Franzel | |
| form fields. | |||
| 2023-03-09 | Fixed #27397 -- Prevented integer overflows on integer field lookups. | Simon Charette | |
| This prevents a sqlite3 crash and address a potential DDoS vector on PostgreSQL caused by full-table-scans on overflows. | |||
| 2023-02-01 | Refs #33476 -- Applied Black's 2023 stable style. | David Smith | |
| Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 | |||
| 2022-12-30 | Refs #34100 -- Made file upload tests use Storage.exists() where appropriate. | Francesco Panico | |
| 2022-12-15 | Fixed #33308 -- Added support for psycopg version 3. | Daniele Varrazzo | |
| Thanks Simon Charette, Tim Graham, and Adam Johnson for reviews. Co-authored-by: Florian Apolloner <florian@apolloner.eu> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2022-12-01 | Refs #33308 -- Deprecated support for passing encoded JSON string literals ↵ | Simon Charette | |
| to JSONField & co. JSON should be provided as literal Python objects an not in their encoded string literal forms. | |||
| 2022-10-08 | Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵ | Gregor Gärtner | |
| assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com> | |||
| 2022-09-16 | Fixed #33966 -- Added support for using KeyTextTransform from lookup. | Allen Jonathan David | |
| 2022-08-27 | Fixed #33954 -- Prevented models.DecimalField from accepting NaN, Inf, and ↵ | Mohamed Karam | |
| -Inf values. | |||
| 2022-08-23 | Removed unused path variable in model_fields tests. | Claude Paroz | |
| 2022-08-18 | Refs #26511 -- Fixed json.KeyTextTransform() on MySQL/MariaDB. | Mariusz Felisiak | |
| 2022-06-03 | Removed obsolete assertions in BooleanFieldTests.test_return_type(). | Mariusz Felisiak | |
| Added in e9bbdb39de3047761fa8d03d5241eccd571093ff. Obsolete since e9103402c0fa873aea58a6a11dba510cd308cb84. | |||
| 2022-04-22 | Refs #31223 -- Added __class_getitem__() to ForeignKey. | Collin Anderson | |
| 2022-04-14 | Relaxed some query ordering assertions in various tests. | Mariusz Felisiak | |
| It accounts for differences seen on MySQL with MyISAM storage engine. | |||
| 2022-04-12 | Fixed #33626 -- Cleared cache when unregistering a lookup. | Himanshu-Balasamanta | |
| 2022-03-15 | Fixed #33552 -- Fixed JSONField has key lookups with numeric keys on ↵ | Sage Abdullah | |
| MariaDB, MySQL, Oracle, and SQLite. | |||
| 2022-02-22 | Removed redundant QuerySet.all() calls in docs and tests. | Nick Pope | |
| Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager. | |||
| 2022-02-07 | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | |
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2022-02-03 | Refs #33476 -- Refactored problematic code before reformatting by Black. | Mariusz Felisiak | |
| In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], ) | |||
| 2022-01-14 | Fixed #33441 -- Restored immutability of models.Field.__hash__(). | Adam Johnson | |
| Regression in 502e75f9ed5476ffe8229109acf0c23999d4b533. | |||
| 2021-09-28 | Fixed #33033 -- Prevented models.DecimalField from accepting NaN values. | Chinmoy Chakraborty | |
| 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-05-13 | Fixed #32718 -- Relaxed file name validation in FileField. | Mariusz Felisiak | |
| - Validate filename returned by FileField.upload_to() not a filename passed to the FileField.generate_filename() (upload_to() may completely ignored passed filename). - Allow relative paths (without dot segments) in the generated filename. Thanks to Jakub Kleň for the report and review. Thanks to all folks for checking this patch on existing projects. Thanks Florian Apolloner and Markus Holtermann for the discussion and implementation idea. Regression in 0b79eb36915d178aef5c6a7bbce71b1e76d376d3. | |||
| 2021-04-08 | Fixed #32620 -- Allowed subclasses of Big/SmallAutoField for DEFAULT_AUTO_FIELD. | Adam Johnson | |
| 2021-03-23 | Fixed #32483 -- Fixed QuerySet.values()/values_list() on JSONField key ↵ | Mariusz Felisiak | |
| transforms with booleans on SQLite. Thanks Matthew Cornell for the report. | |||
| 2021-03-23 | Refs #32483 -- Added tests QuerySet.values()/values_list() on key transforms ↵ | Mariusz Felisiak | |
| with structures containing booleans. | |||
| 2021-03-23 | Refs #31936 -- Added tests for __in lookup on JSONField key transforms with ↵ | Mariusz Felisiak | |
| booleans. | |||
| 2021-02-05 | Fixed #32411 -- Fixed __icontains lookup for JSONField on MySQL. | Hasan Ramezani | |
| 2021-01-14 | Refs #31369 -- Removed models.NullBooleanField per deprecation timeline. | Mariusz Felisiak | |
| 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-10 | Fixed #32178 -- Allowed database backends to skip tests and mark expected ↵ | Hasan Ramezani | |
| failures. Co-authored-by: Tim Graham <timograham@gmail.com> | |||
| 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. | |||
