diff --git a/djangorestframework/permissions.py b/djangorestframework/permissions.py index 1f6151f8c..a9b3f08b8 100644 --- a/djangorestframework/permissions.py +++ b/djangorestframework/permissions.py @@ -103,9 +103,9 @@ class PerUserThrottling(BasePermission): def check_permission(self, user): (num_requests, duration) = getattr(self.view, 'throttle', (0, 0)) - + if user.is_authenticated(): - ident = str(auth) + ident = str(user) else: ident = self.view.request.META.get('REMOTE_ADDR', None)