Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/model_forms
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25496 -- Made ModelChoiceField respect ↵Tim Graham2015-10-061-0/+23
| | | | prefetch_related().
* Fixed #25410 -- Fixed empty ClearableFileInput crash on ↵Tim Graham2015-09-231-0/+13
| | | | | | | | | Python 2. Reverted "Fixes #24727 -- Prevented ClearableFileInput from masking exceptions on Python 2" and added a regression test. This reverts commit 5c412dd8a724b263489c1bd7a2fea381460665d7.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-47/+112
|
* Fixed #24706 -- Made ModelForm._post_clean() handle a ↵Keryn Knight2015-09-072-2/+61
| | | | | | 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-073-1/+36
| | | | when saving invalid form with UUIDField pk.
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-10/+15
| | | | on_delete for ForeignKey/OneToOneField
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-201-8/+8
|
* Fixed #24531 -- Improved CommaSeparatedIntegerField ↵Bertrand Bordage2015-03-251-7/+11
| | | | | | | validation. `','`, `'1,,1'`, `',1'` etc. are no longer considered as valid comma-separated integer lists.
* Updated test to be date-independentClaude Paroz2015-03-051-5/+8
| | | | Fixes commit 8714403614.
* Fixed #24428 -- Fixed has_changed for fields with coercionClaude Paroz2015-03-052-2/+55
| | | | 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.
* Fixed #24295 -- Allowed ModelForm meta to specify form ↵Loic Bistuer2015-02-131-2/+10
| | | | | | field classes. Thanks Carl Meyer and Markus Holtermann for the reviews.
* Fixed E265 comment styleCollin Anderson2015-02-061-2/+2
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-062-14/+19
|
* Fixed DoS possibility in ModelMultipleChoiceField.Tim Graham2015-01-131-0/+21
| | | | | | This is a security fix. Disclosure following shortly. Thanks Keryn Knight for the report and initial patch.
* 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-212-0/+9
| | | | | | | field in Model.clean() Also added a unit test wit the simpler syntax which we have documented, where the dictionary values are strings.
* Fixed flake8 warning.Tim Graham2014-11-131-0/+1
|
* Fixed #23795 -- Fixed a regression in custom form fieldsBaptiste Mispelon2014-11-121-0/+19
| | | | | | | | | Custom form fields having a `queryset` attribute but no `limit_choices_to` could no longer be used in ModelForms. Refs #2445. Thanks to artscoop for the report.
* Fixed typos using https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-041-1/+1
|
* Fixed #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-031-9/+9
| | | | Django test suite.
* Fixed #22745 -- Prevented reevaluation of ↵Vincent-Vega2014-08-041-0/+31
| | | | | | ModelChoiceField's queryset when accesssing BoundField's attrs. Thanks Christian Schmitt for review.
* Fixed #22808 -- Made ModelMultipleChoiceField validation ↵Niclas Olofsson2014-07-311-0/+13
| | | | | | more robust to invalid data types.. Thanks Mattias Lindvall for the report and inital patch.
* Fixed #22979 -- Moved bug* testsTushar Bhatia2014-07-272-1/+47
|
* Fixed #13776 -- Fixed ModelForm.is_valid() exception ↵Anubhav Joshi2014-06-042-1/+35
| | | | | | with non-nullable FK and blank=True. Thanks peterbe for the report.
* Fixed #22510 -- Harden field removal to only None.Marc Tamlyn2014-05-241-1/+19
| | | | | | | | | | | | | | | | Refs #8620. If we allow any value to remove form fields then we get name clashes with method names, media classes etc. There was a backwards incompatibility introduced meaning ModelForm subclasses with declared fields called media or clean would lose those fields. Field removal is now only permitted by using the sentinel value None. The docs have been slightly reworded to refer to removal of fields rather than shadowing. Thanks to gcbirzan for the report and initial patch, and several of the core team for opinions.
* Split ignores_nulls_in_unique_constraints feature.Aymeric Augustin2014-05-081-1/+1
| | | | | Oracle and SQL Server don't have exactly the same limitations. It's worth treating them differently.
* Fix many many typos in comments throughout the codebaseAlex Gaynor2014-04-261-1/+1
|
* Forgotten slash removal in d320863878Claude Paroz2014-03-261-1/+1
|
* Made ModelForms raise ImproperlyConfigured if the list ↵Tim Graham2014-03-221-21/+12
| | | | | | | | of fields is not specified. Also applies to modelform(set)_factory and generic model views. refs #19733.
* Removed hard-coded help_text for ManyToManyFields that ↵Tim Graham2014-03-222-44/+9
| | | | | | use a SelectMultiple widget Per deprecation timeline; refs #9321.
* Removed PIL compatability layer per deprecation timeline.Tim Graham2014-03-212-4/+4
| | | | refs #19934.
* Fixed a small collection of flake8 violations that had ↵Alex Gaynor2014-03-201-3/+4
| | | | snuck in
* Merged model_forms_regress with model_forms testsClaude Paroz2014-03-142-77/+663
|
* Fixed #6103 -- Splitted tests in model_forms testsClaude Paroz2014-03-142-394/+355
|
* Fixed #21188 -- Introduced subclasses for ↵Claude Paroz2014-03-081-3/+4
| | | | | | | to-be-removed-in-django-XX warnings Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
* Fixed #22206 -- Passed models.TextField.max_length to ↵Chris Wilson2014-03-051-1/+1
| | | | forms.CharField.maxlength
* Fixed spelling in model_forms test class namesChris Wilson2014-03-041-6/+6
|
* Fixed #2445 -- Allowed limit_choices_to attribute to be ↵Christopher Adams2014-02-112-2/+58
| | | | | | | | | 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.
* Fixed #16192 -- Made unique error messages in ModelForm ↵Loic Bistuer2014-02-081-1/+44
| | | | | | | | | | | | | | customizable. Overriding the error messages now works for both unique fields, unique_together and unique_for_date. This patch changed the overriding logic to allow customizing NON_FIELD_ERRORS since previously only fields' errors were customizable. Refs #20199. Thanks leahculver for the suggestion.
* Fixed #21745 - Feature check UniqueTest.test_unique_nullMichael Manfre2014-01-081-1/+2
|
* Fixed #21512 -- Added more complete information about ↵Vajrasky Kok2013-11-261-1/+1
| | | | Pillow and PIL in model_fields and model_forms tests.
* Merge pull request #1852 from jasonamyers/cleanup/PEP8Alex Gaynor2013-11-032-3/+36
|\ | | | | Cleanup/pep8 tests
| * Merging in masterJason Myers2013-11-031-0/+35
| |\ | | | | | | | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
| * | PEP8 cleanupJason Myers2013-11-031-0/+28
| | | | | | | | | | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
| * | PEP8Jason Myers2013-11-031-3/+8
| | | | | | | | | | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
| * | Fixed all E261 warningscoagulant2013-11-031-6/+6
| | |
* | | Fixed some testfailures on jenkins.Florian Apolloner2013-11-031-3/+3
| |/ |/| | | | | | | Depending on the order of the tests beeing run, 10 can be a valid pk, 0 can never be a valid pk and as such we will get the wanted ValidationError.
* | Fixed #20849 -- ModelForms do not work well with ↵Jim Bailey2013-11-031-0/+35
| | | | | | | | | | | | | | | | | | | | prefetch_related. model_to_dict() (used when rendering forms) queries the database to get the list of primary keys for ManyToMany fields. This is unnecessary if the field queryset has been prefetched, all the keys are already in memory and can be obtained with a simple iteration.
* | Fixed all E261 warningscoagulant2013-11-021-6/+6
|/