Cache access to cache object

This commit is contained in:
Raphael Michel
2017-10-17 18:00:07 +02:00
parent 7e1e259897
commit 03133dc1fd
12 changed files with 115 additions and 23 deletions

View File

@@ -59,7 +59,7 @@ def eventreverse(obj, name, kwargs=None):
c = None
if not kwargs:
c = obj.get_cache()
c = obj.cache
url = c.get('urlrev_{}'.format(name))
if url:
return url