mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-20 10:21:51 +00:00
Changes two documented types.
This commit is contained in:
parent
58fd71c925
commit
cfcd0f2805
1 changed files with 2 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ def get_query_cache_key(compiler):
|
|||
:arg compiler: A SQLCompiler that will generate the SQL query
|
||||
:type compiler: django.db.models.sql.compiler.SQLCompiler
|
||||
:return: A cache key
|
||||
:rtype: str
|
||||
:rtype: int
|
||||
"""
|
||||
sql, params = compiler.as_sql()
|
||||
check_parameter_types(params)
|
||||
|
|
@ -88,7 +88,7 @@ def get_table_cache_key(db_alias, table):
|
|||
:arg table: Name of the SQL table
|
||||
:type table: str or unicode
|
||||
:return: A cache key
|
||||
:rtype: str
|
||||
:rtype: int
|
||||
"""
|
||||
return hash((db_alias, table))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue