summaryrefslogtreecommitdiff
path: root/tests/model_forms
AgeCommit message (Collapse)Author
2014-01-08Fixed #21745 - Feature check UniqueTest.test_unique_nullMichael Manfre
2013-11-26Fixed #21512 -- Added more complete information about Pillow and PIL in ↵Vajrasky Kok
model_fields and model_forms tests.
2013-11-03Merge pull request #1852 from jasonamyers/cleanup/PEP8Alex Gaynor
Cleanup/pep8 tests
2013-11-03Merging in masterJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-03Fixed some testfailures on jenkins.Florian Apolloner
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.
2013-11-03Fixed #20849 -- ModelForms do not work well with prefetch_related.Jim Bailey
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.
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02PEP8Jason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02Fixed all E261 warningscoagulant
2013-11-02Fixed all E261 warningscoagulant
2013-11-02Fixed #21302 -- Fixed unused imports and import *.Tim Graham
2013-10-26Fixed all the E203 violationsAlex Gaynor
2013-10-26Fix all violators of E231Alex Gaynor
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-10-23Fixed E225 pep8 warnings.Tim Graham
2013-10-21Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol
2013-10-19Removed unused local variables in tests.Tim Graham
2013-10-18Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol
2013-10-15Merge pull request #1382 from loic/ticket19617Marc Tamlyn
Fixed #19617 -- Refactored form metaclasses to support more inheritance scenarios.
2013-10-14Fixed #21266 -- Fixed E201,E202 pep8 warnings.Larry O'Neill
2013-10-14Fixed #8620 -- Updated the Form metaclass to support excluding fields by ↵Loic Bistuer
shadowing them.
2013-10-14Fixed #19617 -- Refactored Form metaclasses to support more inheritance ↵Loic Bistuer
scenarios. Thanks apollo13, funkybob and mjtamlyn for the reviews.
2013-09-05Fixed #21041 -- Removed a duplicate form in tests.Tim Graham
Thanks tuxcanfly.
2013-09-03Fixed "indentation is not a multiple of four" pep8 issues.Tim Graham
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-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-07-01Fixed a couple form/formset deprecation warnings in tests.Tim Graham
2013-07-01Stopped using django.utils.unittest in the test suite.Aymeric Augustin
Refs #20680.
2013-06-29Advanced deprecation warnings for Django 1.7.Aymeric Augustin
2013-06-18Fixed #20199 -- Allow ModelForm fields to override error_messages from model ↵Loic Bistuer
fields
2013-06-14Fixed #20548 -- Removed all PendingDeprecationWarnings from django test suiteMarc Tamlyn
2013-06-13Fixed #20000 -- Allowed ModelForm meta overrides for label, help_text and ↵Loic Bistuer
error_messages
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-21Use assertIsInstance in tests.Marc Tamlyn
Gives much nicer errors when it fails.
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-05-09Fixed #19733 - deprecated ModelForms without 'fields' or 'exclude', and ↵Luke Plant
added '__all__' shortcut This also updates all dependent functionality, including modelform_factory and modelformset_factory, and the generic views `ModelFormMixin`, `CreateView` and `UpdateView` which gain a new `fields` attribute.
2013-04-07Fix #15126: Better error message when passing invalid options to ModelForm.Meta.Baptiste Mispelon
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