Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/model_forms/models.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #24706 -- Made ModelForm._post_clean() handle a ↵Keryn Knight2015-09-071-0/+21
| | | | | | ValidationError raised when constructing the model instance. Thanks Loïc Bistuer for review and advice.
* Fixed #25241 -- Corrected ModelForm.save() error message ↵Tim Graham2015-08-071-0/+6
| | | | when saving invalid form with UUIDField pk.
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-10/+15
| | | | on_delete for 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 ↵Michael Hall2014-12-131-1/+2
| | | | imports to range
* Fixed #23865 -- documented how to assign errors to a ↵Alasdair Nicol2014-11-211-0/+2
| | | | | | | field in Model.clean() 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-271-0/+16
|
* Fixed #13776 -- Fixed ModelForm.is_valid() exception ↵Anubhav Joshi2014-06-041-0/+6
| | | | | | with non-nullable FK and blank=True. Thanks peterbe for the report.
* Removed hard-coded help_text for ManyToManyFields that ↵Tim Graham2014-03-221-5/+0
| | | | | | use a SelectMultiple 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 ↵Christopher Adams2014-02-111-1/+19
| | | | | | | | | a callable. 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-031-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 ↵Loic Bistuer2013-08-051-1/+5
| | | | | | | | | individual fields. 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 ↵Loic Bistuer2013-06-181-0/+10
| | | | error_messages from model fields
* Revert "Began implementing a shared set of test models ↵Florian Apolloner2013-06-101-5/+22
| | | | | | to speed up tests." This reverts commit 22b7870e40a3ecf022b423de6cd867dcb35a6940.
* Fixed #20228 - Documented unique_for_date and exclude ↵Tim Graham2013-05-281-1/+11
| | | | | | behavior. 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.
* Fixed #19934 - Use of Pillow is now preferred over PIL.Daniel Lindsley2013-05-151-9/+3
| | | | This starts the deprecation period for PIL (support to end in 1.8).
* Began implementing a shared set of test models to speed ↵Florian Apolloner2013-03-131-22/+5
| | | | up tests.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-261-0/+280