mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Correct indentation
This commit is contained in:
parent
e17779c47b
commit
98761e4ebb
|
@ -169,7 +169,7 @@ To override the default settings, REST framework provides a set of additional de
|
||||||
from rest_framework.throttling import UserRateThrottle
|
from rest_framework.throttling import UserRateThrottle
|
||||||
|
|
||||||
class OncePerDayUserThrottle(UserRateThrottle):
|
class OncePerDayUserThrottle(UserRateThrottle):
|
||||||
rate = '1/day'
|
rate = '1/day'
|
||||||
|
|
||||||
@api_view(['GET'])
|
@api_view(['GET'])
|
||||||
@throttle_classes([OncePerDayUserThrottle])
|
@throttle_classes([OncePerDayUserThrottle])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user