mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +03:00 
			
		
		
		
	Brackets not required on decorator without arguments
This commit is contained in:
		
							parent
							
								
									8b0d4115c6
								
							
						
					
					
						commit
						a68f473dd8
					
				| 
						 | 
				
			
			@ -108,7 +108,7 @@ For example:
 | 
			
		|||
        queryset = User.objects.all()
 | 
			
		||||
        serializer_class = UserSerializer
 | 
			
		||||
 | 
			
		||||
        @action()
 | 
			
		||||
        @action
 | 
			
		||||
        def set_password(self, request, pk=None):
 | 
			
		||||
            user = self.get_object()
 | 
			
		||||
            serializer = PasswordSerializer(data=request.DATA)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user