mirror of
https://github.com/django/django.git
synced 2025-10-09 18:12:39 +00:00
Made small readability improvements.
This commit is contained in:
parent
4eb756793b
commit
302caa40e4
13 changed files with 52 additions and 62 deletions
2
tests/cache/tests.py
vendored
2
tests/cache/tests.py
vendored
|
@ -1714,7 +1714,7 @@ class CacheUtils(SimpleTestCase):
|
|||
def _get_request_cache(self, method='GET', query_string=None, update_cache=None):
|
||||
request = self._get_request(self.host, self.path,
|
||||
method, query_string=query_string)
|
||||
request._cache_update_cache = True if not update_cache else update_cache
|
||||
request._cache_update_cache = update_cache if update_cache else True
|
||||
return request
|
||||
|
||||
def test_patch_vary_headers(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue