summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-08-18 11:15:05 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-08-18 11:15:05 +0200
commit2284419a2c7b5da643e53754e3bf82637b52017b (patch)
tree1ebc83ead3cbbd01e1460cb2f58516d725149f13
parentf34de7dd6eb7852c272ab2ecc102aa6f06c1d5aa (diff)
[py3] Fixed cache tests.
-rw-r--r--django/core/cache/backends/db.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/cache/backends/db.py b/django/core/cache/backends/db.py
index 0e25941e87..52db4d1b1d 100644
--- a/django/core/cache/backends/db.py
+++ b/django/core/cache/backends/db.py
@@ -167,7 +167,7 @@ class DatabaseCache(BaseDatabaseCache):
cursor.execute("SELECT COUNT(*) FROM %s" % table)
num = cursor.fetchone()[0]
if num > self._max_entries:
- cull_num = num / self._cull_frequency
+ cull_num = num // self._cull_frequency
cursor.execute(
connections[db].ops.cache_key_culling_sql() % table,
[cull_num])