Commit 50c359c5 by Tom Christie

Refs #148

parent 9746bb34
...@@ -188,7 +188,7 @@ class PerUserThrottling(BaseThrottle): ...@@ -188,7 +188,7 @@ class PerUserThrottling(BaseThrottle):
def get_cache_key(self): def get_cache_key(self):
if self.auth.is_authenticated(): if self.auth.is_authenticated():
ident = unicode(self.auth) ident = self.auth.id
else: else:
ident = self.view.request.META.get('REMOTE_ADDR', None) ident = self.view.request.META.get('REMOTE_ADDR', None)
return 'throttle_user_%s' % ident return 'throttle_user_%s' % ident
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment