mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 01:47:59 +03:00 
			
		
		
		
	Merge pull request #1140 from doronpr/patch-1
corrected doc for throttle_classes decorator
This commit is contained in:
		
						commit
						452eb81f5c
					
				| 
						 | 
				
			
			@ -59,7 +59,7 @@ using the `APIView` class based views.
 | 
			
		|||
Or, if you're using the `@api_view` decorator with function based views.
 | 
			
		||||
 | 
			
		||||
    @api_view('GET')
 | 
			
		||||
    @throttle_classes(UserRateThrottle)
 | 
			
		||||
    @throttle_classes([UserRateThrottle])
 | 
			
		||||
    def example_view(request, format=None):
 | 
			
		||||
        content = {
 | 
			
		||||
            'status': 'request was permitted'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user