New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
group name isn't correct for CBVs #73
Comments
Gonna have to take a look at this. In the meantime, you can use the ratelimit mixin, especially if you're applying this to |
I found this bug as well. I have two class-based views and two method-based views. They are all set to |
So I've finally ended up coming across this and determined it's sort of (?) a bug in Django <2.1. Django 2.1 uses I have a fairly ugly solution, I think, that could definitely use testing and feedback as part of 3.0. It's part of #170. |
I apologize for not giving this a closer read before, but this doesn't sound like the same issue @jplehmann. The group value calculation only happens when it's not explicitly set, and that is what's failing in the case of |
I believe this is fixed by #170 but definitely want feedback from folks testing it! |
Inside
is_ratelimited
function, the value of group is alwaysdjango.utils.decorators.bound_func
instead of the actual function name.This is how I'm using the ratelimit decorator:
The text was updated successfully, but these errors were encountered: