aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework
diff options
context:
space:
mode:
Diffstat (limited to 'djangorestframework')
-rw-r--r--djangorestframework/permissions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/permissions.py b/djangorestframework/permissions.py
index 1f6151f8..a9b3f08b 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)