summaryrefslogtreecommitdiff
path: root/tests/model_forms/models.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed various tests on MySQL with MyISAM storage engine.Mariusz Felisiak2022-04-181-0/+3
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-63/+84
|
* Fixed #33084 -- Removed incorrect system check for ManyToManyField with ↵Hasan Ramezani2021-09-091-0/+17
| | | | limit_choices_to.
* Fixed #1891, Fixed #11707 -- Prevented duplicates with limit_choices_to on ↵alvinshaita2020-10-271-2/+7
| | | | multi-value relations.
* Refs #28009 -- Added empty_value tests for CharField subclasses.David Smith2020-09-251-0/+3
|
* Fixed #31596 -- Changed ForeignKey.validate() to use the base manager.Jon Dufresne2020-06-251-0/+9
|
* Fixed #26813 -- Prevented empty choice in ModelChoiceField with RadioSelect ↵Hasan Ramezani2020-02-051-0/+3
| | | | for fields with blank=False.
* Followed style guide for model attribute ordering.Matt Wiens2018-12-271-3/+3
|
* Moved choices inside of test models per coding style.Manan2018-12-101-12/+10
|
* Eliminated the need to modify a model forms test when new test files are added.Tim Graham2018-02-281-1/+1
|
* Fixed #28242 -- Moved ImageField file extension validation to the form field.Manatsawin Hanmongkolchai2017-06-011-0/+11
|
* Removed obsolete references to form_for_instance().Tim Graham2017-02-281-8/+0
|
* Refs #23919 -- Used yield from.Vytis Banaitis2017-02-231-2/+1
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-6/+6
|
* Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.Tim Graham2017-01-201-2/+1
| | | These functions do nothing on Python 3.
* Refs #23919 -- Removed most of remaining six usageClaude Paroz2017-01-181-1/+0
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-2/+1
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz2017-01-181-17/+0
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Refs #26154 -- Removed deprecated CommaSeparatedIntegerField.Tim Graham2017-01-171-8/+0
|
* Fixed #27186 -- Fixed model form default fallback for MultiWidget, ↵Tim Graham2016-09-221-0/+2
| | | | | | FileInput, SplitDateTimeWidget, SelectDateWidget, and SplitArrayWidget. Thanks Matt Westcott for the review.
* Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.Tim Graham2016-09-171-1/+1
| | | | http://bugs.python.org/issue27364
* Refs #25415 -- Fixed invalid models in the test suite.Adam Chainz2016-09-091-1/+1
|
* Fixed #27039 -- Fixed empty data fallback to model field default in model forms.Tim Graham2016-08-241-0/+1
|
* Fixed #4136 -- Made ModelForm save empty values for nullable CharFields as NULL.Jon Dufresne2016-06-131-0/+4
| | | | Previously, empty values were saved as strings.
* Fixed E128 flake8 warnings in tests/.Tim Graham2016-04-081-5/+8
|
* Fixed #25349 -- Allowed a ModelForm to unset a fields with blank=True, ↵haxoza2016-02-191-0/+6
| | | | required=False.
* Fixed #24706 -- Made ModelForm._post_clean() handle a ValidationError raised ↵Keryn Knight2015-09-071-0/+21
| | | | | | when constructing the model instance. Thanks Loïc Bistuer for review and advice.
* Fixed #25241 -- Corrected ModelForm.save() error message when saving invalid ↵Tim Graham2015-08-071-0/+6
| | | | form with UUIDField pk.
* Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella2015-07-271-10/+15
| | | | ForeignKey/OneToOneField
* Fixed #24428 -- Fixed has_changed for fields with coercionClaude Paroz2015-03-051-0/+17
| | | | Thanks Carsten Fuchs for the report.
* Guaranteed removal of temporary files during tests.Aymeric Augustin2015-02-231-1/+1
| | | | | | | 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.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-2/+1
|
* Fixed #23812 -- Changed django.utils.six.moves.xrange imports to rangeMichael Hall2014-12-131-1/+2
|
* Fixed #23865 -- documented how to assign errors to a field in Model.clean()Alasdair Nicol2014-11-211-0/+2
| | | | | Also added a unit test wit the simpler syntax which we have documented, where the dictionary values are strings.
* Fixed #22979 -- Moved bug* testsTushar Bhatia2014-07-261-0/+16
|
* Fixed #13776 -- Fixed ModelForm.is_valid() exception with non-nullable FK ↵Anubhav Joshi2014-06-041-0/+6
| | | | | | and blank=True. Thanks peterbe for the report.
* Removed hard-coded help_text for ManyToManyFields that use a SelectMultiple ↵Tim Graham2014-03-211-5/+0
| | | | | | widget Per deprecation timeline; refs #9321.
* Removed PIL compatability layer per deprecation timeline.Tim Graham2014-03-211-3/+3
| | | | refs #19934.
* Merged model_forms_regress with model_forms testsClaude Paroz2014-03-141-0/+59
|
* Fixed #6103 -- Splitted tests in model_forms testsClaude Paroz2014-03-141-2/+2
|
* Fixed #2445 -- Allowed limit_choices_to attribute to be a callable.Christopher Adams2014-02-111-1/+19
| | | | | | | 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.
* PEP8 cleanupJason Myers2013-11-021-0/+28
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-021-1/+1
|
* Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol2013-10-231-0/+1
|
* Fixed #16986 -- Model.clean() can report errors on individual fields.Loic Bistuer2013-08-061-1/+5
| | | | | | | This commit provides the tests for this issue but the actual problem was solved by the ValidationError refactor in f34cfec and ee77d4b. Refs #20199.
* Fixed #20199 -- Allow ModelForm fields to override error_messages from model ↵Loic Bistuer2013-06-181-0/+10
| | | | fields
* Revert "Began implementing a shared set of test models to speed up tests."Florian Apolloner2013-06-101-5/+22
| | | | This reverts commit 22b7870e40a3ecf022b423de6cd867dcb35a6940.
* Fixed #20228 - Documented unique_for_date and exclude behavior.Tim Graham2013-05-281-1/+11
| | | | Thanks Deepak Thukral for the patch.
* Made fix for #9321 less buggy and more effective.Ramiro Morales2013-05-231-0/+4
| | | | | | | | | | | | | 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.