From cfcd0f28055b21660b8d941cfc3e16a214da9c20 Mon Sep 17 00:00:00 2001 From: Bertrand Bordage Date: Tue, 12 Jan 2016 11:42:57 +0100 Subject: [PATCH] Changes two documented types. --- cachalot/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cachalot/utils.py b/cachalot/utils.py index 390c1a2..0894658 100644 --- a/cachalot/utils.py +++ b/cachalot/utils.py @@ -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))