This commit is contained in:
Tom Christie 2012-01-30 15:54:38 +00:00
parent 9746bb34cc
commit 50c359c551

View File

@ -188,7 +188,7 @@ class PerUserThrottling(BaseThrottle):
def get_cache_key(self):
if self.auth.is_authenticated():
ident = unicode(self.auth)
ident = self.auth.id
else:
ident = self.view.request.META.get('REMOTE_ADDR', None)
return 'throttle_user_%s' % ident