| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2022-04-06 | Fixed #33471 -- Made AlterField operation a noop when changing "choices". | sarahboyce | |
| This also allows customizing attributes of fields that don't affect a column definition. | |||
| 2022-03-24 | Refs #32365 -- Removed internal uses of utils.timezone.utc alias. | Carlton Gibson | |
| Remaining test case ensures that uses of the alias are mapped canonically by the migration writer. | |||
| 2022-02-16 | Made Field.error_messages a cached property. | Collin Anderson | |
| This speeds up field creation and reduces memory usage. | |||
| 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. | |||
| 2022-01-04 | Fixed #33406 -- Avoided creation of MaxLengthValidator(None) when resolving ↵ | Keryn Knight | |
| Value.output_field for strings. This brings the behaviour in line with Field subclasses which append to the validators within __init__(), like BinaryField, and prevents the creation of a validator which incorrectly throws a TypeError, if it were used. | |||
| 2021-12-21 | Fixed #33374 -- Fixed ExpressionWrapper annotations with full queryset. | David Wobrock | |
| 2021-09-28 | Fixed #33033 -- Prevented models.DecimalField from accepting NaN values. | Chinmoy Chakraborty | |
| 2021-09-23 | Fixed #33133 -- Fixed handling NullBooleanField in historical migrations. | Mariusz Felisiak | |
| Regression in d992f4e3c29a81c956d3d616f0bc19701431b26e. | |||
| 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-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-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-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-04-13 | Corrected typo in Field.deconstruct docstring. | Daniel Hahler | |
| 2021-04-08 | Fixed #32620 -- Allowed subclasses of Big/SmallAutoField for DEFAULT_AUTO_FIELD. | Adam Johnson | |
| 2021-01-14 | Refs #31369 -- Removed models.NullBooleanField per deprecation timeline. | Mariusz Felisiak | |
| 2020-12-29 | Used model's Options.label where applicable. | Mariusz Felisiak | |
| Follow up to b7a3a6c9ef0a89625881b47594120bca55fa2e49. | |||
| 2020-11-02 | Fixed #32132 -- Fixed column types in m2m intermediary tables for ↵ | David-Wobrock | |
| Positive(Big/Small)IntegerFields. | |||
| 2020-09-21 | Fixed #31777 -- Added support for database collations to Char/TextFields. | Tom Carrick | |
| Thanks Simon Charette and Mariusz Felisiak for reviews. | |||
| 2020-09-09 | Fixed #31750 -- Made models.Field equality compare models for inherited fields. | Ryan Hiebert | |
| 2020-06-05 | Fixed #31663 -- Made DecimalField.to_python() handle non-numeric invalid values. | Sasha Pachev | |
| 2020-05-08 | Fixed #12990, Refs #27694 -- Added JSONField model field. | sage | |
| Thanks to Adam Johnson, Carlton Gibson, Mariusz Felisiak, and Raphael Michel for mentoring this Google Summer of Code 2019 project and everyone else who helped with the patch. Special thanks to Mads Jensen, Nick Pope, and Simon Charette for extensive reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2020-04-27 | Removed unnecessary tuple wrapping of single format string argument. | François Freitag | |
| 2020-04-24 | Refs #31369 -- Deprecated models.NullBooleanField in favor of ↵ | Tim Schilling | |
| BooleanField(null=True). | |||
| 2020-02-24 | Fixed #31286 -- Made database specific fields checks databases aware. | Taoup | |
| Follow up to 0b83c8cc4db95812f1e15ca19d78614e94cf38dd. | |||
| 2020-01-15 | Fixed #31124 -- Fixed setting of get_FOO_display() when overriding inherited ↵ | Carlton Gibson | |
| choices. Regression in 2d38eb0ab9f78d68c083a5b78b1eca39027b279a | |||
| 2020-01-11 | Fixed #31155 -- Fixed a system check for the longest choice when a named ↵ | Mariusz Felisiak | |
| group contains only non-string values. Regression in b6251956b69512bf230322bd7a49b629ca8455c6. Thanks Murat Guchetl for the report. | |||
| 2019-11-19 | Fixed #30987 -- Added models.PositiveBigIntegerField. | Caio Ariede | |
| 2019-11-05 | Refs #30095 -- Added Field._choices_is_value(). | Hasan Ramezani | |
| This allows fields classes to override the validation of choices' values. | |||
| 2019-11-04 | Fixed #30931 -- Restored ability to override Model.get_FIELD_display(). | Carlton Gibson | |
| Thanks Sergey Fedoseev for the implementation idea. Regression in a68ea231012434b522ce45c513d84add516afa60. | |||
| 2019-10-31 | Refs #30095 -- Simplified Field._check_choices() a bit. | Mariusz Felisiak | |
| Using an internal is_value() hook to check whether Field.choices is iterable is misleading. | |||
| 2019-09-24 | Removed some outdated backwards compatibility imports and misleading comments. | Mads Jensen | |
| EmptyResultSet moved in 46509cf13dbf049f75077981c29ef2c60b5a96ab. FieldDoesNotExist moved in 8958170755b37ce346ae5257c1000bd936faa3b0. BoundField and pretty_name moved in 8550161e531a603d57723850fb09c4c9b7ca60b9. EMPTY_VALUES moved in 471596fc1afcb9c6258d317c619eaf5fd394e797. BaseRunserverCommand moved in 5c53e30607014163872e89c221b206992a9acfef. | |||
| 2019-09-09 | Refs #29444 -- Allowed returning multiple fields from INSERT statements on ↵ | Johannes Hoppe | |
| PostgreSQL. Thanks Florian Apolloner, Tim Graham, Simon Charette, Nick Pope, and Mariusz Felisiak for reviews. | |||
| 2019-09-09 | Fixed #30757 -- Added a system check to ensure max_length fits the longest ↵ | Nick Pope | |
| choice. | |||
| 2019-09-02 | Refs #28442 -- Adjusted related lookups handling of expression rhs. | Simon Charette | |
| Expressions should never be prepared as other Lookup.get_prep_lookup implementations hint at by returning early on the presence of the resolve_expression attribute. The previous solution was only handling lookups against related fields pointing at AutoFields and would break for foreign keys to other fields. It was also causing bidirectional coupling between model fields and expressions which the method level import of OuterRef was a symptom of. | |||
| 2019-08-20 | Fixed #29979, Refs #17337 -- Extracted AutoField field logic into a mixin ↵ | Nick Pope | |
| and refactored AutoFields. This reduces duplication by allowing AutoField, BigAutoField and SmallAutoField to inherit from IntegerField, BigIntegerField and SmallIntegerField respectively. Doing so also allows for enabling the max_length warning check and minimum/maximum value validation for auto fields, as well as providing a mixin that can be used for other possible future auto field types such as a theoretical UUIDAutoField. | |||
| 2019-08-15 | Fixed #30449 -- Fixed RelatedFieldListFilter/RelatedOnlyFieldListFilter to ↵ | zeyneloz | |
| respect model's Meta.ordering. Regression in 6d4e5feb79f7eabe8a0c7c4b87f25b1a7f87ca0b. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2019-08-14 | Optimized Field.deconstruct() by using elif. | Mads Jensen | |
| 2019-08-05 | Fixed #28393 -- Added helpful error messages for invalid ↵ | Diederik van der Boor | |
| AutoField/FloatField/IntegerField values. Co-authored-by: Diederik van der Boor <vdboor@edoburu.nl> Co-authored-by: Nick Pope <nick.pope@flightdataservices.com> | |||
| 2019-08-02 | Fixed #30661 -- Added models.SmallAutoField. | Nick Pope | |
| 2019-07-25 | Fixed #30657 -- Allowed customizing Field's descriptors with a ↵ | Jon Dufresne | |
| descriptor_class attribute. Allows model fields to override the descriptor class used on the model instance attribute. | |||
| 2019-07-25 | Refs #30657 -- Made DeferredAttribute.__init__() to take a field instance ↵ | Jon Dufresne | |
| instead of a field name. | |||
| 2019-06-28 | Fixed #30400 -- Improved typography of user facing strings. | Jon Dufresne | |
| Thanks Claude Paroz for assistance with translations. | |||
| 2019-05-02 | Fixed #29529 -- Allowed models.fields.FilePathField to accept a callable path. | Mykola Kokalko | |
| 2019-04-29 | Simplified Field.contribute_to_class(). | Jon Dufresne | |
