diff options
| author | Sébastien Piquemal | 2012-02-02 08:39:15 +0200 | 
|---|---|---|
| committer | Sébastien Piquemal | 2012-02-02 08:39:15 +0200 | 
| commit | 5f59d90645dfddc293bbbbc4ca9b4c3f3125b590 (patch) | |
| tree | aa3d091a1f61f5717f7f1a9e96334308bb13c7d9 /djangorestframework/permissions.py | |
| parent | 152c385f4de37558fe4e522abad5b97f0cf7ddce (diff) | |
| parent | 894f63259880252ed5317ce485eb13c4429b65c1 (diff) | |
| download | django-rest-framework-5f59d90645dfddc293bbbbc4ca9b4c3f3125b590.tar.bz2 | |
merged with trunk's master
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  | 
