summaryrefslogtreecommitdiff
path: root/tests/model_forms/models.py
AgeCommit message (Collapse)Author
2018-12-27Followed style guide for model attribute ordering.Matt Wiens
2018-12-10Moved choices inside of test models per coding style.Manan
2018-02-28Eliminated the need to modify a model forms test when new test files are added.Tim Graham
2017-06-01Fixed #28242 -- Moved ImageField file extension validation to the form field.Manatsawin Hanmongkolchai
2017-02-28Removed obsolete references to form_for_instance().Tim Graham
2017-02-23Refs #23919 -- Used yield from.Vytis Banaitis
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-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 python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Refs #26154 -- Removed deprecated CommaSeparatedIntegerField.Tim Graham
2016-09-22Fixed #27186 -- Fixed model form default fallback for MultiWidget, ↵Tim Graham
FileInput, SplitDateTimeWidget, SelectDateWidget, and SplitArrayWidget. Thanks Matt Westcott for the review.
2016-09-17Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.Tim Graham
http://bugs.python.org/issue27364
2016-09-09Refs #25415 -- Fixed invalid models in the test suite.Adam Chainz
2016-08-24Fixed #27039 -- Fixed empty data fallback to model field default in model forms.Tim Graham
2016-06-13Fixed #4136 -- Made ModelForm save empty values for nullable CharFields as NULL.Jon Dufresne
Previously, empty values were saved as strings.
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-02-19Fixed #25349 -- Allowed a ModelForm to unset a fields with blank=True, ↵haxoza
required=False.
2015-09-07Fixed #24706 -- Made ModelForm._post_clean() handle a ValidationError raised ↵Keryn Knight
when constructing the model instance. Thanks Loïc Bistuer for review and advice.
2015-08-07Fixed #25241 -- Corrected ModelForm.save() error message when saving invalid ↵Tim Graham
form with UUIDField pk.
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-03-05Fixed #24428 -- Fixed has_changed for fields with coercionClaude Paroz
Thanks Carsten Fuchs for the report.
2015-02-23Guaranteed removal of temporary files during tests.Aymeric Augustin
Dropped the DJANGO_TEST_TEMP_DIR environment variable. Before this change, proper removal depended on the developer passing dir=os.environ['DJANGO_TEST_TMP_DIR'] to tempfile functions.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-12-13Fixed #23812 -- Changed django.utils.six.moves.xrange imports to rangeMichael Hall
2014-11-21Fixed #23865 -- documented how to assign errors to a field in Model.clean()Alasdair Nicol
Also added a unit test wit the simpler syntax which we have documented, where the dictionary values are strings.
2014-07-26Fixed #22979 -- Moved bug* testsTushar Bhatia
2014-06-04Fixed #13776 -- Fixed ModelForm.is_valid() exception with non-nullable FK ↵Anubhav Joshi
and blank=True. Thanks peterbe for the report.
2014-03-21Removed hard-coded help_text for ManyToManyFields that use a SelectMultiple ↵Tim Graham
widget Per deprecation timeline; refs #9321.
2014-03-21Removed PIL compatability layer per deprecation timeline.Tim Graham
refs #19934.
2014-03-14Merged model_forms_regress with model_forms testsClaude Paroz
2014-03-14Fixed #6103 -- Splitted tests in model_forms testsClaude Paroz
2014-02-11Fixed #2445 -- Allowed limit_choices_to attribute to be a callable.Christopher Adams
ForeignKey or ManyToManyField attribute ``limit_choices_to`` can now be a callable that returns either a ``Q`` object or a dict. Thanks michael at actrix.gen.nz for the original suggestion.
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02Fixed #21302 -- Fixed unused imports and import *.Tim Graham
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-08-06Fixed #16986 -- Model.clean() can report errors on individual fields.Loic Bistuer
This commit provides the tests for this issue but the actual problem was solved by the ValidationError refactor in f34cfec and ee77d4b. Refs #20199.
2013-06-18Fixed #20199 -- Allow ModelForm fields to override error_messages from model ↵Loic Bistuer
fields
2013-06-10Revert "Began implementing a shared set of test models to speed up tests."Florian Apolloner
This reverts commit 22b7870e40a3ecf022b423de6cd867dcb35a6940.
2013-05-28Fixed #20228 - Documented unique_for_date and exclude behavior.Tim Graham
Thanks Deepak Thukral for the patch.
2013-05-23Made fix for #9321 less buggy and more effective.Ramiro Morales
Don't try to be smart about building a good-looking help string because it evaluates translations too early, simply use the same old strategy as before. Thanks Donald Stufft for the report. Also, actually fix the case reported by the OP by special-casing CheckboxSelectMultiple. Added tests. Refs #9321.
2013-05-14Fixed #19934 - Use of Pillow is now preferred over PIL.Daniel Lindsley
This starts the deprecation period for PIL (support to end in 1.8).
2013-03-13Began implementing a shared set of test models to speed up tests.Florian Apolloner
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner