mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +03:00 
			
		
		
		
	
							parent
							
								
									0ac20a3d8e
								
							
						
					
					
						commit
						f539c0dbd1
					
				| 
						 | 
					@ -1725,9 +1725,6 @@ class DictField(Field):
 | 
				
			||||||
        return self.run_child_validation(data)
 | 
					        return self.run_child_validation(data)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def to_representation(self, value):
 | 
					    def to_representation(self, value):
 | 
				
			||||||
        """
 | 
					 | 
				
			||||||
        List of object instances -> List of dicts of primitive datatypes.
 | 
					 | 
				
			||||||
        """
 | 
					 | 
				
			||||||
        return {
 | 
					        return {
 | 
				
			||||||
            six.text_type(key): self.child.to_representation(val) if val is not None else None
 | 
					            six.text_type(key): self.child.to_representation(val) if val is not None else None
 | 
				
			||||||
            for key, val in value.items()
 | 
					            for key, val in value.items()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user