mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-18 09:53:56 +01:00
Fixed default throttle class
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
from drf_spectacular.utils import extend_schema
|
||||
from rest_framework import permissions, response, viewsets
|
||||
|
||||
from modoboa.lib.throttle import UserDosThrottle
|
||||
from modoboa.lib.throttle import UserDosThrottleViewset
|
||||
|
||||
from . import serializers
|
||||
from ... import backends
|
||||
@@ -13,7 +13,7 @@ class TransportViewSet(viewsets.ViewSet):
|
||||
"""Viewset for Transport."""
|
||||
|
||||
permissions = (permissions.IsAuthenticated, )
|
||||
throttle_classes = [UserDosThrottle]
|
||||
throttle_classes = [UserDosThrottleViewset]
|
||||
|
||||
@extend_schema(
|
||||
responses={200: serializers.TransportBackendSerializer}
|
||||
|
||||
Reference in New Issue
Block a user