diff options
| author | Sébastien Piquemal | 2012-01-31 23:21:55 +0200 |
|---|---|---|
| committer | Sébastien Piquemal | 2012-01-31 23:21:55 +0200 |
| commit | 279fa0d371b73974b87267edabe2a4f76a198ebb (patch) | |
| tree | 28b3a7aa6d489ad1e93acb14c3e890c8733f85cf /djangorestframework/permissions.py | |
| parent | 152c385f4de37558fe4e522abad5b97f0cf7ddce (diff) | |
| parent | b2fcfffb3bdaed89d39ee563c58dc0ede5e857ac (diff) | |
| download | django-rest-framework-279fa0d371b73974b87267edabe2a4f76a198ebb.tar.bz2 | |
merge
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 945023ce..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 = str(self.auth) + ident = self.auth.id else: ident = self.view.request.META.get('REMOTE_ADDR', None) return 'throttle_user_%s' % ident |
