diff options
| author | Tom Christie | 2012-01-30 15:54:38 +0000 |
|---|---|---|
| committer | Tom Christie | 2012-01-30 15:54:38 +0000 |
| commit | 50c359c551728b8cdbb963a9f233c635065effb0 (patch) | |
| tree | 610453278e4141661ffb748cf54f57351ec97e05 /djangorestframework/permissions.py | |
| parent | 9746bb34cccd3158c0b13c0559342d9f88c07fdb (diff) | |
| download | django-rest-framework-50c359c551728b8cdbb963a9f233c635065effb0.tar.bz2 | |
Refs #148
Diffstat (limited to 'djangorestframework/permissions.py')
| -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 d832c5fe..dfe55ce9 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 |
