mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 01:47:59 +03:00 
			
		
		
		
	Fixed method signature in docs (#6931)
This commit is contained in:
		
							parent
							
								
									89ac0a1c7e
								
							
						
					
					
						commit
						7a3b7d2001
					
				| 
						 | 
				
			
			@ -218,7 +218,7 @@ in the `.validate()` method, or else in the view.
 | 
			
		|||
For example:
 | 
			
		||||
 | 
			
		||||
    class BillingRecordSerializer(serializers.ModelSerializer):
 | 
			
		||||
        def validate(self, data):
 | 
			
		||||
        def validate(self, attrs):
 | 
			
		||||
            # Apply custom validation either here, or in the view.
 | 
			
		||||
 | 
			
		||||
        class Meta:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user