Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refs #31949 -- Made @never_cache and @cache_control() decorators to work ↵ | Ben Lomax | 2023-04-25 | 1 | -0/+103 |
| | | | | | | with async functions. Thanks Carlton Gibson and Mariusz Felisiak for reviews. | ||||
* | Added more tests for @cache_control decorator. | Ben Lomax | 2023-04-25 | 1 | -0/+19 |
| | |||||
* | Moved cache decorators tests into decorators/test_cache.py. | Ben Lomax | 2023-04-04 | 2 | -101/+109 |
| | |||||
* | Normalized decorator style for functools.wraps. | Aymeric Augustin | 2022-05-25 | 1 | -1/+2 |
| | |||||
* | Renamed wrapped functions to wrapper. | Aymeric Augustin | 2022-05-25 | 1 | -2/+2 |
| | | | | | All these functions are wrapping another function. They're the wrapper, while the function they're wrapping is the wrapped. | ||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 1 | -63/+93 |
| | |||||
* | Fixed #33350 -- Reallowed using cache decorators with duck-typed HttpRequest. | Mariusz Felisiak | 2021-12-16 | 1 | -2/+39 |
| | | | | | Regression in 3fd82a62415e748002435e7bad06b5017507777c. Thanks Terence Honles for the report. | ||||
* | Refs #33338 -- Added never_cache() tests for Expires header. | mgaligniana | 2021-12-13 | 1 | -5/+21 |
| | |||||
* | Fixed #33043 -- Made method_decorator() preserve wrapper assignments. | Vinay Karanam | 2021-10-20 | 1 | -0/+23 |
| | | | | Regression in f434f5b84f7fcea9a76a551621ecce70786e2899. | ||||
* | Refs #32468 -- Added error message on invalid usage of cache decorators. | Haki Benita | 2021-02-24 | 1 | -1/+28 |
| | |||||
* | Fixed #31789 -- Added a new headers interface to HttpResponse. | Tom Carrick | 2020-09-14 | 1 | -3/+3 |
| | |||||
* | Refs #26601 -- Deprecated passing None as get_response arg to middleware ↵ | Claude Paroz | 2020-02-18 | 1 | -1/+1 |
| | | | | | | | | | classes. This is the new contract since middleware refactoring in Django 1.10. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | ||||
* | Fixed #30594 -- Added 'private' Cache-Control directive to never_cache() ↵ | nsasaki128 | 2019-06-26 | 1 | -1/+1 |
| | | | | decorator. | ||||
* | Refs #29253 -- Fixed method_decorator() crash if decorator sets a new attribute. | Chris Jerdonek | 2018-06-27 | 1 | -0/+15 |
| | | | Regression in fdc936c9130cf4fb5d59869674b9a31cc79a7999. | ||||
* | Fixed #29253 -- Made method_decorator(list) copy attributes. | Chris Jerdonek | 2018-04-16 | 1 | -6/+23 |
| | |||||
* | Updated decorators test to use subTest(). | Chris Jerdonek | 2018-04-16 | 1 | -9/+9 |
| | |||||
* | Fixed spelling of "nonexistent". | Tim Graham | 2017-02-03 | 1 | -2/+2 |
| | |||||
* | Refs #23919 -- Removed misc references to Python 2. | Tim Graham | 2017-01-21 | 1 | -2/+2 |
| | |||||
* | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | 2017-01-19 | 1 | -17/+17 |
| | |||||
* | Refs #20223 -- Removed deprecated django.utils.functional.allow_lazy(). | Tim Graham | 2017-01-17 | 1 | -14/+1 |
| | |||||
* | Fixed E305 flake8 warnings. | Ramin Farajpour Cami | 2016-11-14 | 1 | -0/+5 |
| | |||||
* | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | 2016-11-10 | 1 | -8/+3 |
| | |||||
* | Fixed #26747 -- Used more specific assertions in the Django test suite. | Jon Dufresne | 2016-06-16 | 1 | -9/+9 |
| | |||||
* | Fixed #10107 -- Allowed using mark_safe() as a decorator. | Scott Vitale | 2016-06-07 | 1 | -0/+4 |
| | | | | Thanks ArcTanSusan for the initial patch. | ||||
* | Fixed #20223 -- Added keep_lazy() as a replacement for allow_lazy(). | Iacopo Spalletti | 2015-12-12 | 1 | -2/+16 |
| | | | | Thanks to bmispelon and uruz for the initial patch. | ||||
* | Fixed #25611 -- Standardized descriptor signatures. | Tim Graham | 2015-10-26 | 1 | -3/+3 |
| | |||||
* | Fixed #25269 -- Allowed method_decorator() to accept a list/tuple of decorators. | fabrizio ettore messina | 2015-09-18 | 1 | -8/+73 |
| | |||||
* | Fixed #25146 -- Allowed method_decorator() to decorate classes. | Rigel Di Scala | 2015-08-01 | 1 | -1/+50 |
| | |||||
* | Fixed #13008 -- Added more Cache-Control headers to never_cache() decorator. | Markus Bertheau | 2015-04-28 | 1 | -0/+12 |
| | |||||
* | Sorted imports with isort; refs #23860. | Tim Graham | 2015-02-06 | 1 | -7/+15 |
| | |||||
* | Removed django.utils.functional.memoize per deprecation timeline. | Tim Graham | 2015-01-17 | 1 | -7/+1 |
| | | | | refs #21351. | ||||
* | Fixed #23923 -- Promoted Django's deprecation warnings to errors in runtests.py | Tim Graham | 2014-11-29 | 1 | -1/+2 |
| | |||||
* | Fixed #21247 -- Made method_decorator play nicely with descriptors | Marc Tamlyn | 2014-02-09 | 1 | -1/+37 |
| | | | | | | | | When a method decorator was used in conjunction with a decorator implemented as a descriptor, method_decorator did not correctly respect the method binding. Thanks for Graham Dumpleton for the report and initial patch. | ||||
* | Removed unused imports + other flake8 fixes. | Tim Graham | 2014-02-09 | 1 | -1/+2 |
| | |||||
* | Merge pull request #1997 from dpwrussell/method_decorator_args_fix | Marc Tamlyn | 2014-02-09 | 1 | -1/+21 |
|\ | | | | | Used available_attrs in method_decorator | ||||
| * | Fixed #21513 -- Added method_decorator support for argumented decorator | dpwrussell | 2014-01-10 | 1 | -1/+21 |
| | | | | | | | | | | | | Copied attributes into the decorated method and special case __name__ copy as this will not be present on a Class object. Added regression test to decorator suite. | ||||
* | | Removed superfluous models.py files. | Aymeric Augustin | 2013-12-17 | 1 | -1/+0 |
|/ | | | | | | | Added comments in the three empty models.py files that are still needed. Adjusted the test runner to add applications corresponding to test labels to INSTALLED_APPS even when they don't have a models module. | ||||
* | Fixed #21351 -- Replaced memoize with Python's lru_cache. | Bouke Haarsma | 2013-11-11 | 1 | -1/+5 |
| | | | | | | | | | | Replaced the custom, untested memoize with a similar decorator from Python's 3.2 stdlib. Although some minor performance degradation (see ticket), it is expected that in the long run lru_cache will outperform memoize once it is implemented in C. Thanks to EvilDMP for the report and Baptiste Mispelon for the idea of replacing memoize with lru_cache. | ||||
* | PEP8 | Jason Myers | 2013-11-02 | 1 | -1/+2 |
| | | | | Signed-off-by: Jason Myers <jason@jasonamyers.com> | ||||
* | Fix all violators of E231 | Alex Gaynor | 2013-10-26 | 1 | -1/+1 |
| | |||||
* | Fixed #21298 -- Fixed E301 pep8 warnings | Alasdair Nicol | 2013-10-23 | 1 | -0/+1 |
| | |||||
* | Fixed #21270 -- Fixed E701 pep8 warnings | Alasdair Nicol | 2013-10-17 | 1 | -2/+5 |
| | |||||
* | 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. | ||||
* | Stopped using django.utils.unittest in the test suite. | Aymeric Augustin | 2013-07-01 | 1 | -1/+1 |
| | | | | Refs #20680. | ||||
* | Use assertIsInstance in tests. | Marc Tamlyn | 2013-05-21 | 1 | -5/+5 |
| | | | | Gives much nicer errors when it fails. | ||||
* | Merged regressiontests and modeltests into the test root. | Florian Apolloner | 2013-02-26 | 3 | -0/+252 |