Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed #33984 -- Reverted "Fixed #32980 -- Made models cache related managers." | Mariusz Felisiak | 2022-09-30 | 1 | -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 Felisiak | 2022-02-07 | 1 | -4/+5 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 2 | -30/+39 |
| | |||||
* | Fixed #32980 -- Made models cache related managers. | Keryn Knight | 2021-11-08 | 1 | -0/+8 |
| | |||||
* | Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly. | Hasan Ramezani | 2020-11-06 | 1 | -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 Dufresne | 2019-04-29 | 1 | -3/+3 |
| | | | | Follow up to 253adc2b8a52982139d40c4f55b3fd446e1cb8f3. | ||||
* | Followed style guide for model attribute ordering. | Matt Wiens | 2018-12-27 | 1 | -3/+3 |
| | |||||
* | Used assertRaisesMessage() to test Django's error messages. | Mads Jensen | 2017-07-29 | 1 | -1/+1 |
| | |||||
* | Refs #23919 -- Removed python_2_unicode_compatible decorator usage | Claude Paroz | 2017-01-18 | 1 | -6/+0 |
| | |||||
* | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | 2017-01-18 | 1 | -2/+0 |
| | |||||
* | Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase. | Tim Graham | 2016-12-07 | 1 | -5/+3 |
| | |||||
* | Fixed #25550 -- Deprecated direct assignment to the reverse side of a ↵ | Tim Graham | 2015-10-27 | 1 | -3/+3 |
| | | | | related set. | ||||
* | Fixed #24505 -- Fixed clash with hidden m2m fields. | Marco Fucci | 2015-03-26 | 2 | -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 Graham | 2015-02-06 | 1 | -2/+4 |
| | |||||
* | Added a test to ensure bad assignation to M2M doesn't clear data | Claude Paroz | 2014-12-24 | 1 | -0/+12 |
| | | | | Refs #14394. | ||||
* | Fixed #23620 -- Used more specific assertions in the Django test suite. | Berker Peksag | 2014-11-03 | 1 | -4/+4 |
| | |||||
* | Fixed #19671 -- Added warnings that null and validators are ignored for ↵ | Anubhav Joshi | 2014-07-09 | 1 | -1/+1 |
| | | | | | | ManyToManyField. Thanks Loic Bistuer and Tim Graham for help and review. | ||||
* | Corrected many style guide violations that the newest version of flake8 catches | Alex Gaynor | 2014-03-30 | 1 | -1/+1 |
| | |||||
* | Fixed #19816 -- Pre-evaluate querysets used in direct relation assignments. | Loic Bistuer | 2014-03-30 | 1 | -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 Bistuer | 2013-12-10 | 1 | -1/+2 |
| | |||||
* | PEP8 cleanup | Jason Myers | 2013-11-02 | 1 | -0/+9 |
| | | | | Signed-off-by: Jason Myers <jason@jasonamyers.com> | ||||
* | Whitespace cleanup. | Tim Graham | 2013-10-10 | 1 | -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 Graham | 2013-09-03 | 1 | -1/+1 |
| | |||||
* | Removed most of absolute_import imports | Claude Paroz | 2013-07-29 | 1 | -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 Apolloner | 2013-02-26 | 3 | -0/+191 |