diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-08-18 11:15:05 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-08-18 11:15:05 +0200 |
| commit | 2284419a2c7b5da643e53754e3bf82637b52017b (patch) | |
| tree | 1ebc83ead3cbbd01e1460cb2f58516d725149f13 | |
| parent | f34de7dd6eb7852c272ab2ecc102aa6f06c1d5aa (diff) | |
[py3] Fixed cache tests.
| -rw-r--r-- | django/core/cache/backends/db.py | 2 |
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]) |
