From 50c359c551728b8cdbb963a9f233c635065effb0 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Mon, 30 Jan 2012 15:54:38 +0000 Subject: [PATCH] Refs #148 --- djangorestframework/permissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangorestframework/permissions.py b/djangorestframework/permissions.py index d832c5feb..dfe55ce94 100644 --- a/djangorestframework/permissions.py +++ b/djangorestframework/permissions.py @@ -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