mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-16 11:12:21 +03:00
chore: Use static method
This commit is contained in:
parent
9ba943db95
commit
398ba98e1b
|
@ -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