mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-27 20:14:01 +03:00
chore: Use static method
This commit is contained in:
parent
76cc34ae38
commit
16e88c64be
|
@ -237,7 +237,8 @@ class Throttled(APIException):
|
||||||
self.wait = wait
|
self.wait = wait
|
||||||
super().__init__(detail, code)
|
super().__init__(detail, code)
|
||||||
|
|
||||||
def extra_detail(self, wait):
|
@staticmethod
|
||||||
|
def extra_detail(wait):
|
||||||
return ngettext(
|
return ngettext(
|
||||||
'Expected available in {wait} second.',
|
'Expected available in {wait} second.',
|
||||||
'Expected available in {wait} seconds.',
|
'Expected available in {wait} seconds.',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user