mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-30 23:47:53 +03:00 
			
		
		
		
	
						commit
						0c91d8ed31
					
				|  | @ -137,7 +137,7 @@ The `@action` and `@link` decorators can additionally take extra arguments that | ||||||
|         def set_password(self, request, pk=None): |         def set_password(self, request, pk=None): | ||||||
|            ... |            ... | ||||||
| 
 | 
 | ||||||
| The `@action` decorator will route `POST` requests by default, but may also accept other HTTP methods, by using the `method` argument.  For example: | The `@action` decorator will route `POST` requests by default, but may also accept other HTTP methods, by using the `methods` argument.  For example: | ||||||
| 
 | 
 | ||||||
|         @action(methods=['POST', 'DELETE']) |         @action(methods=['POST', 'DELETE']) | ||||||
|         def unset_password(self, request, pk=None): |         def unset_password(self, request, pk=None): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user