Fix throttling bug
parent
8a9964446a
commit
66477c6777
|
@ -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 = []
|
||||
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue