Permalink
Browse files

[py3] Fixed cache tests.

  • Loading branch information...
1 parent f34de7d commit 2284419a2c7b5da643e53754e3bf82637b52017b @aaugustin aaugustin committed Aug 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/core/cache/backends/db.py
View
2 django/core/cache/backends/db.py
@@ -167,7 +167,7 @@ def _cull(self, db, cursor, now):
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])

0 comments on commit 2284419

Please sign in to comment.