mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +03:00 
			
		
		
		
	
						commit
						9687f4ffae
					
				| 
						 | 
				
			
			@ -146,7 +146,7 @@ The decorators can additionally take extra arguments that will be set for the ro
 | 
			
		|||
        def set_password(self, request, pk=None):
 | 
			
		||||
           ...
 | 
			
		||||
 | 
			
		||||
Theses decorators will route `GET` requests by default, but may also accept other HTTP methods, by using the `methods` argument.  For example:
 | 
			
		||||
These decorators will route `GET` requests by default, but may also accept other HTTP methods, by using the `methods` argument.  For example:
 | 
			
		||||
 | 
			
		||||
        @detail_route(methods=['post', 'delete'])
 | 
			
		||||
        def unset_password(self, request, pk=None):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user