diff options
| author | Tom Christie | 2012-01-30 14:13:57 +0000 |
|---|---|---|
| committer | Tom Christie | 2012-01-30 14:13:57 +0000 |
| commit | 278b3576f311ad49a95b8efb997a194e5211df57 (patch) | |
| tree | 960642a082c746779012b1e0fc8093d25018031a | |
| parent | c7a805603405e21897b1788408beb5165685a2ec (diff) | |
| download | django-rest-framework-278b3576f311ad49a95b8efb997a194e5211df57.tar.bz2 | |
Fixes #148. Thanks @dvinegla.
| -rw-r--r-- | djangorestframework/permissions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/permissions.py b/djangorestframework/permissions.py index 945023ce..d832c5fe 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 = str(self.auth) + ident = unicode(self.auth) else: ident = self.view.request.META.get('REMOTE_ADDR', None) return 'throttle_user_%s' % ident |
