mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-18 12:12:19 +03:00
fixing the api view
This commit is contained in:
parent
9becb0ed53
commit
e4a8a1e08b
|
@ -17,10 +17,10 @@ from rest_framework.throttling import (
|
||||||
AnonRateThrottle, BaseThrottle, ScopedRateThrottle, SimpleRateThrottle,
|
AnonRateThrottle, BaseThrottle, ScopedRateThrottle, SimpleRateThrottle,
|
||||||
UserRateThrottle
|
UserRateThrottle
|
||||||
)
|
)
|
||||||
from rest_framework.views import APIView
|
|
||||||
from rest_framework.utils.throttling_duration_parser import (
|
from rest_framework.utils.throttling_duration_parser import (
|
||||||
parse_quantity_and_unit
|
parse_quantity_and_unit
|
||||||
)
|
)
|
||||||
|
from rest_framework.views import APIView
|
||||||
|
|
||||||
|
|
||||||
class User3SecRateThrottle(UserRateThrottle):
|
class User3SecRateThrottle(UserRateThrottle):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user