mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-20 10:21:51 +00:00
Removes map for Python 3.
This commit is contained in:
parent
e5d003c8e4
commit
350bced73d
1 changed files with 2 additions and 2 deletions
|
|
@ -43,7 +43,7 @@ def _get_table_cache_key(table):
|
|||
|
||||
|
||||
def _get_tables_cache_keys(query):
|
||||
return map(_get_table_cache_key, _get_tables(query))
|
||||
return [_get_table_cache_key(t) for t in _get_tables(query)]
|
||||
|
||||
|
||||
def _update_tables_queries(cache, query, cache_key):
|
||||
|
|
@ -71,7 +71,7 @@ def clear_cache(cache=None):
|
|||
if cache is None:
|
||||
cache = get_cache()
|
||||
tables = connection.introspection.table_names()
|
||||
tables_cache_keys = map(_get_table_cache_key, tables)
|
||||
tables_cache_keys = [_get_table_cache_key(t) for t in tables]
|
||||
_invalidate_tables_cache_keys(cache, tables_cache_keys)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue