Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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')``.


Expand Down