summaryrefslogtreecommitdiff
path: root/tests/model_formsets_regress/tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵Gregor Gärtner2022-10-081-1/+1
| | | | | | assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com>
* Relaxed some query ordering assertions in various tests.Mariusz Felisiak2022-04-141-2/+8
| | | It accounts for differences seen on MySQL with MyISAM storage engine.
* Removed redundant QuerySet.all() calls in docs and tests.Nick Pope2022-02-221-6/+6
| | | | Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-3/+7
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-174/+196
|
* Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly.Hasan Ramezani2020-11-061-1/+4
| | | | | | | | This also replaces assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Removed serial pk assumption from ↵Tim Graham2020-11-031-7/+7
| | | | FormfieldShouldDeleteFormTests.test_custom_delete.
* Used 4 space hanging indent for dictionaries.Tim Graham2019-01-021-4/+6
| | | Thanks Mariusz Felisiak for auditing.
* Fixed #29981 -- Fixed inline formsets with a OnetoOneField primary key that ↵Patrik Sletmo2019-01-011-2/+10
| | | | uses to_field.
* Fixed hanging indentation in various code.Mariusz Felisiak2018-03-161-2/+1
|
* Removed unnecessary trailing commas and spaces in various code.Mariusz Felisiak2017-12-281-1/+1
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-1/+1
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-191-1/+1
|
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-8/+7
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-1/+4
|
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-311-1/+0
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-4/+7
|
* Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne2014-12-081-9/+9
| | | | comprehension
* Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag2014-11-031-3/+3
|
* Fixed #13794 -- Fixed to_field usage in BaseInlineFormSet.Tim Graham2014-07-091-1/+35
| | | | | Thanks sebastien at clarisys.fr for the report and gautier for the patch.
* PEP8Jason Myers2013-11-021-0/+1
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed #14877 -- repeated deletion using formsetsAnssi Kääriäinen2013-10-301-0/+49
| | | | | | | | | | | | | When a formset contained deletion for an existing instance, and the instance was already deleted, django threw an exception. A common cause for this was resubmit of the formset. Original patch by Trac alias olau. In addition this commit cleaned some code in _construct_form(). This was needed as the primary key value the user submitted wasn't converted correctly to python value in case the primary key field was also a related field.
* Fix all violators of E231Alex Gaynor2013-10-261-3/+3
|
* Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol2013-10-211-17/+17
|
* Removed unused local variables in tests.Tim Graham2013-10-191-2/+2
|
* Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol2013-10-181-1/+1
|
* Fixed #17627 -- Renamed util.py files to utils.pyTim Graham2013-09-161-1/+1
| | | | | Thanks PaulM for the suggestion and Luke Granger-Brown and Wiktor Kołodziej for the initial patch.
* Removed most of absolute_import importsClaude Paroz2013-07-291-1/+1
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Use assertIsInstance in tests.Marc Tamlyn2013-05-211-8/+8
| | | | Gives much nicer errors when it fails.
* Fixed #13546 -- Easier handling of localize field options in ModelFormErik Romijn2013-05-181-1/+6
|
* Fixed #19733 - deprecated ModelForms without 'fields' or 'exclude', and ↵Luke Plant2013-05-091-13/+15
| | | | | | | | 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.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-261-0/+449