summaryrefslogtreecommitdiff
path: root/tests/model_fields
AgeCommit message (Collapse)Author
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
2016-10-31Fixed #27148 -- Fixed ModelMultipleChoiceField crash with invalid UUID.Tim Graham
2016-10-28Fixed #27188 -- Allowed using unique=True with FileField.Michael Scott
Thanks Tim Graham for the initial patch.
2016-10-26Fixed #27334 -- Allowed FileField to move rather than copy a file.Adam Chidlow
When a FileField is set to an instance of File that is not also an instance of FieldFile, pre_save() passes that object as the contents to Storage.save(). This allows the file to be moved rather than copied to the upload destination.
2016-09-19Fixed #27219 -- Changed cx_Oracle client encoding to AL32UTF8 to allow ↵Dmitry Medvinsky
4-byte characters.
2016-07-16Fixed #26900 -- Fixed crash accessing deferred FileFields.Tim Graham
2016-07-12Fixed #17657 -- Made ModelForm respect ModelMultipleChoiceField's to_field_name.Andrey Fedoseev
Follow up to 67d984413c9540074e4fe6aa033081a35cf192bc.
2016-06-30Fixed #21548 -- Added FileExtensionValidator and validate_image_file_extension.Berker Peksag
2016-06-28Fixed #26786 -- Avoided redundant max value validators on integer fields.Eduard Stepanov
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
2016-05-28Refs #24227 -- Fixed crash of ManyToManyField.value_from_object() on unsaved ↵Tim Graham
model instances. This behavior was removed in 67d984413c9540074e4fe6aa033081a35cf192bc but is needed to prevent a crash in formtools.
2016-05-04Fixed #22936 -- Obsoleted Field.get_prep_lookup()/get_db_prep_lookup()Claude Paroz
Thanks Tim Graham for completing the initial patch.
2016-04-30Fixed #26058 -- Delegated os.path bits of FileField's filename generation to ↵Cristiano
the Storage.
2016-04-29Fixed #26557 -- Converted empty strings to None when saving ↵Joshua Phillips
GenericIPAddressField.
2016-04-13Refs #16508 -- Renamed the current "virtual" fields to "private".Michal Petrucha
The only reason why GenericForeignKey and GenericRelation are stored separately inside _meta is that they need to be cloned for every model subclass, but that's not true for any other virtual field. Actually, it's only true for GenericRelation.
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-03-23Split model_fields tests into different files.Tim Graham
2016-03-10Fixed #26324 -- Fixed DurationField with fractional seconds on SQLite.Tim Graham
2016-02-29Fixed #26186 -- Documented how app relative relationships of abstract models ↵Simon Charette
behave. This partially reverts commit bc7d201bdbaeac14a49f51a9ef292d6312b4c45e. Thanks Tim for the review. Refs #25858.
2016-01-29Refs #26022 -- Used context manager version of assertRaisesMessage in tests.Hasan
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2016-01-11Fixed #25858 -- Bound abstract model application relative relationships.Simon Charette
Thanks to Karl Hobley for the report and Markus, Shai, Aymeric for their input and Tim for the review.
2016-01-06Fixed #25746 -- Isolated inlined test models registration.Simon Charette
Thanks to Tim for the review.
2015-12-05Fixed #25547 -- Made Model.refresh_from_db() update FileField's instance.Attila Tovt
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
2015-11-24Fixed #25767 -- Fixed data truncation possibility with ↵George Marshall
Positive(Small)IntegerField on MySQL.
2015-09-22Fixed #24509 -- Added Expression support to SQLInsertCompilerAlex Hill
2015-09-18Fixed #24636 -- Added model field validation for decimal places and max digits.Iulia Chiriac
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-09-09Serialized some tests that interact with the filesystem.Aymeric Augustin
Considering the APIs exercised by these test cases, it's hard to make them independent.
2015-09-01Fixed #25320 -- Reverted ManyToManyField.null to False for backwards ↵Tim Graham
compatibility. Thanks Tom Christie for the report and review.
2015-08-31Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant
2015-08-10Fixed #25160 -- Moved unsaved model instance data loss check to Model.save()Tim Graham
This mostly reverts 5643a3b51be338196d0b292d5626ad43648448d3 and 81e1a35c364e5353d2bf99368ad30a4184fbb653. Thanks Carl Meyer for review.
2015-08-03Removed unused Field.get_flatchoices() method.Tim Graham
Unused since c2ba59fc1da5287d6286e2c2aca4083d5bafe056 (Django 1.0). Thanks Andy Baker for the report.
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-21Fixed #25129 -- Made model instance defaults work with migrations (refs #24919).Tim Graham
2015-07-17Fixed #16501 -- Added an allow_unicode parameter to SlugField.Edward Henderson
Thanks Flavio Curella and Berker Peksag for the initial patch.
2015-06-15Fixed flake8 warnings on Python 3.Tim Graham
2015-06-06Fixed #24859 -- Made QuerySet.get() with UUIDField raise TypeError on bad value.Cole Maclean
For consistency with AutoField.
2015-06-04Fixed #24677 -- Made TextField.to_python() return a string.Rolo
This is consistent with CharField.