Replies: 3 comments 2 replies
-
That would have been a very welcome change and would have made it easier to start using django-ratelimit for me. A variant which may be less disruptive would be to set Thanks! |
Beta Was this translation helpful? Give feedback.
-
I'd consider this comment another vote in support of the change #245 (comment) |
Beta Was this translation helpful? Give feedback.
-
This change was made in #269, thanks for the input, folks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Proposal: change the default from
@ratelimit(block=False)
to@ratelimit(block=True)
in version 4.Status: Accepted
Affects version: 4.0
Changes that would occur by default:
This would not impact
core.is_ratelimited()
, since that method does not have ablock=
argument.I suspect a number of issues over the years have been filed due to the surprising behavior of not actually blocking requests by default.
I would like to hear input from users here to know if this would make the API more intuitive or upgrading too much of a pain. The upgrade steps would be, anywhere
block=
is not specified and the default behavior is desired, it would need to be changed. Anywhereblock=True
is specified would not need to be changed.Beta Was this translation helpful? Give feedback.
All reactions