NameError in django.core.cache.backends.db
Lines 127 and 129 in django/core/cache/backends/db.py (http://code.djangoproject.com/browser/django/trunk/django/core/cache/backends/db.py?rev=13473#L127) cause a NameError when executed.
r13473 introduced an update to allow the new Router system to handle the database cache table name, changing the CacheClass variable handling from
self._table
to the local variable
table
, derived from
table = connections[db].ops.quote_name(self._table)
. The
_cull
method in CacheClass must have been missed, as it tries to use the local
table
variable without first deriving it.
Change History
(3)
Resolution: |
→ fixed
|
Status: |
new → closed
|
Adds a line to derive local table var