django-ratelimit
django-ratelimit copied to clipboard
Documentation: Clarity around omitting HTTP method on CBV
When applying @method_decorator(ratelimit(key='ip', rate='1/m', method='GET'), name='get') to an entire class, there is a bit of confusion I have about the inclusion of the HTTP method.
What happens if one were to leave it off? I think the documentation can make this a little clearer by either adding a second application of the decorator for POST or perhaps indicate if it will then handle all HTTP methods.
Additionally, if the name kwarg is not supplied, what happens then as well?
Thanks for the great software!
I would be happy to edit the docs to whatever the answer ends up being.