summaryrefslogtreecommitdiff
path: root/tests/model_fields
AgeCommit message (Collapse)Author
2018-11-27Switched setUp() to setUpTestData() where possible in Django's tests.Simon Charette
2018-11-27Switched TestCase to SimpleTestCase where possible in Django's tests.Tim Graham
2018-11-14Fixed #29835 -- Made RelatedFieldListFilter respect ModelAdmin.ordering.Hasan Ramezani
2018-10-24Fixed #29869 -- Made UUIDField.to_python() convert integers.Sanyam Khurana
2018-10-22Fixed #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-01Added tests for using bytearray with BinaryField and corrected docs.Jon Dufresne
2018-09-28Refs #28909 -- Simplifed code using unpacking generalizations.Sergey Fedoseev
2018-09-26Added test of filtering on BinaryField and corrected docs.Jon Dufresne
2018-04-20Fixed #29247 -- Allowed blank model field choice to be defined in nested ↵orlnub123
choices.
2018-04-20Moved tests for model Field.get_choices().Tim Graham
2018-03-20Fixed #29227 -- Allowed BooleanField to be null=True.Tim Graham
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
2018-03-16Fixed hanging indentation in various code.Mariusz Felisiak
2017-12-28Fixed #28926 -- Fixed loss of precision of big DurationField values on ↵Sergey Fedoseev
SQLite and MySQL.
2017-12-22Fixed #28937 -- Allowed BinaryField to be editable=True.Cameron Curry
2017-12-12Fixed #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-30Fixed #28856 -- Fixed a regression in caching of a GenericForeignKey ↵Simon Charette
pointing to a MTI model. Regression in b9f8635f58ad743995cad2081b3dc395e55761e5.
2017-11-13Simplified choices iterators in tests.model_fields.models.Sergey Fedoseev
2017-09-29Fixed #27979 -- Made MySQL raise IntegrityError rather than OperationalError ↵Tim Graham
when saving negative numbers in PositiveInteger fields.
2017-09-25Removed DatabaseFeatures.supports_microsecond_precision.Tim Graham
MySQL 5.5 (refs #28552) was the last database to use it.
2017-08-31Fixed #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-29Used assertRaisesMessage() to test Django's error messages.Mads Jensen
2017-07-20Removed unused models.DecimalField._format().Sergey Fedoseev
Unused since b3b71a0922334c70bbc646a4873010f808196671.
2017-06-26Removed unnecessary empty parentheses in class definitions.Jon Dufresne
2017-06-17Fixed #28319 -- Made TextField with choices use a Select widget.Maciej Jaworski
2017-06-14Fixed #27914 -- Added support for nested classes in ↵chillaranand
Field.deconstruct()/__repr__().
2017-06-09Refs #27953 -- Removed hardcoded uses of Model.__str__() in tests.Collin Anderson
2017-06-01Fixed #28242 -- Moved ImageField file extension validation to the form field.Manatsawin Hanmongkolchai
2017-05-31Refs #27777 -- Improved docs/added test for File context manager change.Ingo Klöcker
2017-05-11Fixed #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-10Decreased max_length for char fields unless absolutely needed. (#8485)Florian Apolloner
2017-05-09Fixed #28164 -- Improved float conversions in DecimalField.to_pythonClaude Paroz
Thanks Tim Graham and Adam Johnson for the reviews.
2017-04-29Removed blank line in tests/model_fields/test_decimalfield.py per isort.Tim Graham
2017-04-28Refs #6767 -- Added test for fetching decimal values without rounding error ↵Mariusz Felisiak
on Oracle.
2017-03-23Fixed #27969 -- Fixed models.Field.formfield() setting 'disabled' for fields ↵Kapil Garg
with choices.
2017-03-04Refs #27795 -- Removed unneeded force_text callsClaude Paroz
Thanks Tim Graham for the review.
2017-02-10Refs #27148 -- Fixed UUIDField.to_python(None) crash.ClairePhila
Regression in 2f9861d823620da7ecb291a8f005f53da12b1e89.
2017-01-29Removed unneeded parentheses in class definitionsClaude Paroz
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-20Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.Tim Graham
These functions do nothing on Python 3.
2017-01-19Fixed spelling mistakes in code and comments.james mike dupont
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Refs #26154 -- Removed deprecated CommaSeparatedIntegerField.Tim Graham
2016-12-20Added a test for NullBooleanField.formfield().Tim Graham
2016-12-14Fixed #27599 -- Fixed Field.__str__() crash for fields not attached to models.Morgan Aubert
2016-12-14Moved test_field_ordering to the model_fields package.Morgan Aubert
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za