-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Clarify throttling rates #9639
-
In the documentation at https://www.django-rest-framework.org/api-guide/throttling/ the allowed throttling periods are indicated as second
, minute
, hour
or day
.
Further in the same page, an example shows, instead, the use of just min
.
Looking at the source code it is evident that just the first letter of the period is considered:
I think this should be clarified to the user, e.g. something like:
The throttling period is specified after the
/
separator by usings
,m
,h
ord
. The use of an extended unit such assecond
,minute
,hour
orday
or evensec
,min
,hr
is allowed too (only the first character is relevant).
Beta Was this translation helpful? Give feedback.
All reactions
PR welcome, I remember looking at the source code myself at some point too 👍🏻
Replies: 1 comment
-
PR welcome, I remember looking at the source code myself at some point too 👍🏻
Beta Was this translation helpful? Give feedback.