From 7237178fddfde0551b658fc1c5ceec001ba27bfb Mon Sep 17 00:00:00 2001 From: Jon Plaut Date: Mon, 1 Oct 2018 10:10:38 -0500 Subject: [PATCH] Update throttling docs to reflect correct throttle rate keys --- docs/api-guide/throttling.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api-guide/throttling.md b/docs/api-guide/throttling.md index de66396a8..ce46b2c30 100644 --- a/docs/api-guide/throttling.md +++ b/docs/api-guide/throttling.md @@ -33,12 +33,12 @@ The default throttling policy may be set globally, using the `DEFAULT_THROTTLE_C 'rest_framework.throttling.UserRateThrottle' ), 'DEFAULT_THROTTLE_RATES': { - 'anon': '100/day', - 'user': '1000/day' + 'anon': '100/d', + 'user': '1000/d' } } -The rate descriptions used in `DEFAULT_THROTTLE_RATES` may include `second`, `minute`, `hour` or `day` as the throttle period. +The rate descriptions used in `DEFAULT_THROTTLE_RATES` may include `s`, `m`, `h` or `d` as the throttle period. You can also set the throttling policy on a per-view or per-viewset basis, using the `APIView` class-based views.