mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-02 11:30:12 +03:00
Remove kwargs argument from get_ident
This commit is contained in:
parent
1fd90884f1
commit
e7b131eb20
|
@ -18,7 +18,7 @@ class BaseThrottle(object):
|
|||
"""
|
||||
raise NotImplementedError('.allow_request() must be overridden')
|
||||
|
||||
def get_ident(self, request, **kwargs):
|
||||
def get_ident(self, request):
|
||||
if 'HTTP_X_FORWARDED_FOR' in request.META:
|
||||
xff = request.META.get('HTTP_X_FORWARDED_FOR')
|
||||
return xff.split(',')[0].strip()
|
||||
|
|
Loading…
Reference in New Issue
Block a user