mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 01:47:59 +03:00 
			
		
		
		
	
						commit
						5ee472718a
					
				| 
						 | 
					@ -369,7 +369,7 @@ This class implements the same basic API as the `Serializer` class:
 | 
				
			||||||
* `.errors` - Returns an errors during validation.
 | 
					* `.errors` - Returns an errors during validation.
 | 
				
			||||||
* `.save()` - Persists the validated data into an object instance.
 | 
					* `.save()` - Persists the validated data into an object instance.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
There are four mathods that can be overriding, depending on what functionality you want the serializer class to support:
 | 
					There are four methods that can be overridden, depending on what functionality you want the serializer class to support:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* `.to_representation()` - Override this to support serialization, for read operations.
 | 
					* `.to_representation()` - Override this to support serialization, for read operations.
 | 
				
			||||||
* `.to_internal_value()` - Override this to support deserialization, for write operations.
 | 
					* `.to_internal_value()` - Override this to support deserialization, for write operations.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user