diff --git a/taiga/base/throttling.py b/taiga/base/throttling.py index 086f9660..e8f60c2f 100644 --- a/taiga/base/throttling.py +++ b/taiga/base/throttling.py @@ -39,6 +39,8 @@ class GlobalThrottlingMixin: } +# If you derive a class from this mixin you have to put this class previously +# to the base throttling class. class ThrottleByActionMixin: throttled_actions = [] diff --git a/taiga/users/throttling.py b/taiga/users/throttling.py index 718283a0..b87ea8da 100644 --- a/taiga/users/throttling.py +++ b/taiga/users/throttling.py @@ -24,6 +24,6 @@ class UserDetailRateThrottle(throttling.GlobalThrottlingMixin, throttling.Thrott throttled_actions = ["by_username", "retrieve"] -class UserUpdateRateThrottle(throttling.UserRateThrottle, throttling.ThrottleByActionMixin): +class UserUpdateRateThrottle(throttling.ThrottleByActionMixin, throttling.UserRateThrottle): scope = "user-update" throttled_actions = ["update", "partial_update"]