Skip to content

Commit

Permalink
fixes jmoiron#31
Browse files Browse the repository at this point in the history
  • Loading branch information
natethelen committed Aug 14, 2013
1 parent 017803e commit f729591
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions johnny/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
except:
DEFUALT_DB_ALIAS = None

from johnny import settings
from johnny.decorators import wraps, available_attrs


Expand Down Expand Up @@ -79,6 +80,7 @@ def _get_from_savepoints(self, key, using=None):
def _trunc_using(self, using):
if using is None:
using = DEFAULT_DB_ALIAS
using = settings.DB_CACHE_KEYS[using]
if len(using) > 100:
using = using[0:68] + self.keygen.gen_key(using[68:])
return using
Expand Down

0 comments on commit f729591

Please sign in to comment.