Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[py3] Fixed cache tests.

  • Loading branch information...
commit 2284419a2c7b5da643e53754e3bf82637b52017b 1 parent f34de7d
@aaugustin aaugustin authored
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])
Please sign in to comment.
Something went wrong with that request. Please try again.