summaryrefslogtreecommitdiff
path: root/django/middleware/cache.py
diff options
context:
space:
mode:
authorPiotr Jakimiak <pj306228@students.mimuw.edu.pl>2015-05-13 20:51:18 +0200
committerPiotr Jakimiak <pj306228@students.mimuw.edu.pl>2015-05-13 20:51:18 +0200
commit4157c502a5202798d0f73645181cb82aa71d34d9 (patch)
tree78c99c7fd271f6c25a71b2ccf781ab7928396677 /django/middleware/cache.py
parentf61c4f490dc4c8ec6ba94ad4f40247db2425fc3e (diff)
Removed unnecessary arguments in .get method calls
Diffstat (limited to 'django/middleware/cache.py')
-rw-r--r--django/middleware/cache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/middleware/cache.py b/django/middleware/cache.py
index 79202adda3..11a65cd928 100644
--- a/django/middleware/cache.py
+++ b/django/middleware/cache.py
@@ -131,11 +131,11 @@ class FetchFromCacheMiddleware(object):
if cache_key is None:
request._cache_update_cache = True
return None # No cache information available, need to rebuild.
- response = self.cache.get(cache_key, None)
+ response = self.cache.get(cache_key)
# if it wasn't found and we are looking for a HEAD, try looking just for that
if response is None and request.method == 'HEAD':
cache_key = get_cache_key(request, self.key_prefix, 'HEAD', cache=self.cache)
- response = self.cache.get(cache_key, None)
+ response = self.cache.get(cache_key)
if response is None:
request._cache_update_cache = True