mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-31 07:57:55 +03:00 
			
		
		
		
	Apply to_native on dictionary keys as well
This commit is contained in:
		
							parent
							
								
									3de61d200c
								
							
						
					
					
						commit
						a6806f0307
					
				|  | @ -91,7 +91,7 @@ class Field(object): | |||
|         elif hasattr(value, '__iter__') and not isinstance(value, (dict, basestring)): | ||||
|             return [self.to_native(item) for item in value] | ||||
|         elif isinstance(value, dict): | ||||
|             return dict((k, self.to_native(v)) for k, v in value.items()) | ||||
|             return dict(map(self.to_native, (k, v)) for k, v in value.items()) | ||||
|         return smart_unicode(value) | ||||
| 
 | ||||
|     def attributes(self): | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user