summaryrefslogtreecommitdiff
path: root/tests/m2m_regress
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #33984 -- Reverted "Fixed #32980 -- Made models cache related managers."Mariusz Felisiak2022-09-301-8/+14
| | | | | | | | This reverts 4f8c7fd9d91b35e2c2922de4bb50c8c8066cbbc6 and adds two regression tests: - test_related_manager_refresh(), and - test_create_copy_with_m2m(). Thanks joeli for the report.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-4/+5
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-072-30/+39
|
* Fixed #32980 -- Made models cache related managers.Keryn Knight2021-11-081-0/+8
|
* Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly.Hasan Ramezani2020-11-061-11/+11
| | | | | | | | 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>
* Refs #26022 -- Used context manager version of assertRaisesMessage in tests.Jon Dufresne2019-04-291-3/+3
| | | | Follow up to 253adc2b8a52982139d40c4f55b3fd446e1cb8f3.
* Followed style guide for model attribute ordering.Matt Wiens2018-12-271-3/+3
|
* Used assertRaisesMessage() to test Django's error messages.Mads Jensen2017-07-291-1/+1
|
* Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz2017-01-181-6/+0
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase.Tim Graham2016-12-071-5/+3
|
* Fixed #25550 -- Deprecated direct assignment to the reverse side of a ↵Tim Graham2015-10-271-3/+3
| | | | related set.
* Fixed #24505 -- Fixed clash with hidden m2m fields.Marco Fucci2015-03-262-1/+23
| | | | | Added support for multiple m2m fields with the same 'to' model and with related_name set to '+'.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-2/+4
|
* Added a test to ensure bad assignation to M2M doesn't clear dataClaude Paroz2014-12-241-0/+12
| | | | Refs #14394.
* Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag2014-11-031-4/+4
|
* Fixed #19671 -- Added warnings that null and validators are ignored for ↵Anubhav Joshi2014-07-091-1/+1
| | | | | | ManyToManyField. Thanks Loic Bistuer and Tim Graham for help and review.
* Corrected many style guide violations that the newest version of flake8 catchesAlex Gaynor2014-03-301-1/+1
|
* Fixed #19816 -- Pre-evaluate querysets used in direct relation assignments.Loic Bistuer2014-03-301-12/+0
| | | | | | | | | | Since assignments on M2M or reverse FK descriptors is composed of a `clear()`, followed by an `add()`, `clear()` could potentially affect the value of the assigned queryset before the `add()` step; pre-evaluating it solves the problem. This patch fixes the issue for ForeignRelatedObjectsDescriptor, ManyRelatedObjectsDescriptor, and ReverseGenericRelatedObjectsDescriptor. It completes 6cb6e1 which addressed ReverseManyRelatedObjectsDescriptor.
* Fixed E124 pep8 warnings.Loic Bistuer2013-12-101-1/+2
|
* PEP8 cleanupJason Myers2013-11-021-0/+9
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Whitespace cleanup.Tim Graham2013-10-101-1/+0
| | | | | | | * Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
* Updated syncdb -> migrate in tests.Tim Graham2013-09-031-1/+1
|
* 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.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+191