Correct indentation

This commit is contained in:
Борис Верховский 2020-09-16 09:43:27 -04:00 committed by GitHub
parent e17779c47b
commit 98761e4ebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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])