diff --git a/docs/usage.rst b/docs/usage.rst index d9c0c99..8f046b4 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -66,12 +66,12 @@ the root ``ratelimit`` module: from django_ratelimit.decorators import ratelimit - @ratelimit(key='ip', method=ratelimit.ALL) - @ratelimit(key='ip', method=ratelimit.UNSAFE) + @ratelimit(key='ip', method=django_ratelimit.ALL) + @ratelimit(key='ip', method=django_ratelimit.UNSAFE) def myview(request): pass -``ratelimit.ALL`` applies to all HTTP methods. ``ratelimit.UNSAFE`` +``django_ratelimit.ALL`` applies to all HTTP methods. ``django_ratelimit.UNSAFE`` is a shortcut for ``('POST', 'PUT', 'PATCH', 'DELETE')``.