| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2019-11-04 | [3.0.x] Fixed #30931 -- Restored ability to override Model.get_FIELD_display(). | Carlton Gibson | |
| Thanks Sergey Fedoseev for the implementation idea. Regression in a68ea231012434b522ce45c513d84add516afa60. Backport of 2d38eb0ab9f78d68c083a5b78b1eca39027b279a from master | |||
| 2019-09-04 | Fixed #27910 -- Added enumeration helpers for use in Field.choices. | Shai Berger | |
| These classes can serve as a base class for user enums, supporting translatable human-readable names, or names automatically inferred from the enum member name. Additional properties make it easy to access the list of names, values and display labels. Thanks to the following for ideas and reviews: Carlton Gibson, Fran Hrženjak, Ian Foote, Mariusz Felisiak, Shai Berger. Co-authored-by: Shai Berger <shai@platonix.com> Co-authored-by: Nick Pope <nick.pope@flightdataservices.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 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-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-06-28 | Fixed #30400 -- Improved typography of user facing strings. | Jon Dufresne | |
| Thanks Claude Paroz for assistance with translations. | |||
| 2019-06-07 | Refs #27804 -- Used subTest() in BinaryFieldTests.test_set_and_retrieve. | Jon Dufresne | |
| 2019-05-02 | Fixed #29529 -- Allowed models.fields.FilePathField to accept a callable path. | Mykola Kokalko | |
| 2019-05-02 | Added tests for setting models.fields.FilePathField.path. | Mykola Kokalko | |
| 2019-04-19 | Fixed #30328 -- Fixed crash of IntegerField.validators when limit_value in a ↵ | Scott Fitsimones | |
| custom validator is callable. | |||
| 2019-03-23 | Removed redundant model field choices tests. | Matthias Kestenholz | |
| 2019-03-17 | Refs #12663 -- Fixed reference to nonexistent field in model_fields tests. | Simon Charette | |
| 2019-03-04 | Fixed #30232 -- Corrected expected format in invalid DurationField error ↵ | avas9366 | |
| message. | |||
| 2019-01-30 | Fixed #30076 -- Added Model.get_FOO_display() even if field's choices are empty. | Joshua Cannon | |
| 2018-11-27 | Switched setUp() to setUpTestData() where possible in Django's tests. | Simon Charette | |
| 2018-11-27 | Switched TestCase to SimpleTestCase where possible in Django's tests. | Tim Graham | |
| 2018-11-14 | Fixed #29835 -- Made RelatedFieldListFilter respect ModelAdmin.ordering. | Hasan Ramezani | |
| 2018-10-24 | Fixed #29869 -- Made UUIDField.to_python() convert integers. | Sanyam Khurana | |
| 2018-10-22 | Fixed #27595 -- Made ForeignKey.get_col() follow target chains. | Simon Charette | |
| Previously, foreign relationships were followed only one level deep which prevents foreign keys to foreign keys from being resolved appropriately. This was causing issues such as improper database value conversion for UUIDField on SQLite because the resolved expression's output field's internal type wasn't correct. Added tests to make sure unlikely foreign reference cycles don't cause recursion errors. Refs #24343. Thanks oyooyo for the report and Wayne Merry for the investigation. | |||
| 2018-10-01 | Added tests for using bytearray with BinaryField and corrected docs. | Jon Dufresne | |
| 2018-09-28 | Refs #28909 -- Simplifed code using unpacking generalizations. | Sergey Fedoseev | |
| 2018-09-26 | Added test of filtering on BinaryField and corrected docs. | Jon Dufresne | |
| 2018-04-20 | Fixed #29247 -- Allowed blank model field choice to be defined in nested ↵ | orlnub123 | |
| choices. | |||
| 2018-04-20 | Moved tests for model Field.get_choices(). | Tim Graham | |
| 2018-03-20 | Fixed #29227 -- Allowed BooleanField to be null=True. | Tim Graham | |
| Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review. | |||
| 2018-03-16 | Fixed hanging indentation in various code. | Mariusz Felisiak | |
| 2017-12-28 | Fixed #28926 -- Fixed loss of precision of big DurationField values on ↵ | Sergey Fedoseev | |
| SQLite and MySQL. | |||
| 2017-12-22 | Fixed #28937 -- Allowed BinaryField to be editable=True. | Cameron Curry | |
| 2017-12-12 | Fixed #28915 -- Prevented SQLite from truncating trailing zeros in the ↵ | Sergey Fedoseev | |
| fractional part of DecimalField. This reverts commit a146b65628e702a9a3ed5be21542ca45366fbb29 and adds a test for the regression. | |||
| 2017-11-30 | Fixed #28856 -- Fixed a regression in caching of a GenericForeignKey ↵ | Simon Charette | |
| pointing to a MTI model. Regression in b9f8635f58ad743995cad2081b3dc395e55761e5. | |||
| 2017-11-13 | Simplified choices iterators in tests.model_fields.models. | Sergey Fedoseev | |
| 2017-09-29 | Fixed #27979 -- Made MySQL raise IntegrityError rather than OperationalError ↵ | Tim Graham | |
| when saving negative numbers in PositiveInteger fields. | |||
| 2017-09-25 | Removed DatabaseFeatures.supports_microsecond_precision. | Tim Graham | |
| MySQL 5.5 (refs #28552) was the last database to use it. | |||
| 2017-08-31 | Fixed #28543 -- Prevented ManyToManyField.value_from_object() from being lazy. | Tim Graham | |
| Previously, it was a QuerySet which could reevaluate to a new value if the model's data changes. This is inconsistent with other Field.value_from_object() methods. This allows reverting the fix in the admin for refs #27998. | |||
| 2017-07-29 | Used assertRaisesMessage() to test Django's error messages. | Mads Jensen | |
| 2017-07-20 | Removed unused models.DecimalField._format(). | Sergey Fedoseev | |
| Unused since b3b71a0922334c70bbc646a4873010f808196671. | |||
| 2017-06-26 | Removed unnecessary empty parentheses in class definitions. | Jon Dufresne | |
| 2017-06-17 | Fixed #28319 -- Made TextField with choices use a Select widget. | Maciej Jaworski | |
| 2017-06-14 | Fixed #27914 -- Added support for nested classes in ↵ | chillaranand | |
| Field.deconstruct()/__repr__(). | |||
| 2017-06-09 | Refs #27953 -- Removed hardcoded uses of Model.__str__() in tests. | Collin Anderson | |
| 2017-06-01 | Fixed #28242 -- Moved ImageField file extension validation to the form field. | Manatsawin Hanmongkolchai | |
| 2017-05-31 | Refs #27777 -- Improved docs/added test for File context manager change. | Ingo Klöcker | |
| 2017-05-11 | Fixed #28188 -- Fixed crash when pickling model fields. | Tim Graham | |
| Regression in d2a26c1a90e837777dabdf3d67ceec4d2a70fb86. Thanks Adam Alton for the report and test, and Adam Johnson for suggesting the fix. | |||
| 2017-05-10 | Decreased max_length for char fields unless absolutely needed. (#8485) | Florian Apolloner | |
| 2017-05-09 | Fixed #28164 -- Improved float conversions in DecimalField.to_python | Claude Paroz | |
| Thanks Tim Graham and Adam Johnson for the reviews. | |||
| 2017-04-29 | Removed blank line in tests/model_fields/test_decimalfield.py per isort. | Tim Graham | |
| 2017-04-28 | Refs #6767 -- Added test for fetching decimal values without rounding error ↵ | Mariusz Felisiak | |
| on Oracle. | |||
| 2017-03-23 | Fixed #27969 -- Fixed models.Field.formfield() setting 'disabled' for fields ↵ | Kapil Garg | |
| with choices. | |||
| 2017-03-04 | Refs #27795 -- Removed unneeded force_text calls | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-02-10 | Refs #27148 -- Fixed UUIDField.to_python(None) crash. | ClairePhila | |
| Regression in 2f9861d823620da7ecb291a8f005f53da12b1e89. | |||
