mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 18:08:03 +03:00 
			
		
		
		
	Fixed missing "fields" meta argument in docs (#8243)
* Fixed missing "fields" meta argument in docs, leading to an assertion error * Update docs/api-guide/serializers.md Co-authored-by: Tom Christie <tom@tomchristie.com> Co-authored-by: Tom Christie <tom@tomchristie.com>
This commit is contained in:
		
							parent
							
								
									f4cf0260bf
								
							
						
					
					
						commit
						45082b3936
					
				| 
						 | 
				
			
			@ -524,6 +524,7 @@ You can add extra fields to a `ModelSerializer` or override the default fields b
 | 
			
		|||
 | 
			
		||||
        class Meta:
 | 
			
		||||
            model = Account
 | 
			
		||||
            fields = ['url', 'groups']
 | 
			
		||||
 | 
			
		||||
Extra fields can correspond to any property or callable on the model.
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user