mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-31 16:07:38 +03:00 
			
		
		
		
	Improve memory address removal for serializer representations
This commit is contained in:
		
							parent
							
								
									54ccf7230d
								
							
						
					
					
						commit
						3318f75a71
					
				|  | @ -17,7 +17,7 @@ def smart_repr(value): | ||||||
|     # <django.core.validators.RegexValidator object at 0x1047af050> |     # <django.core.validators.RegexValidator object at 0x1047af050> | ||||||
|     # Should be presented as |     # Should be presented as | ||||||
|     # <django.core.validators.RegexValidator object> |     # <django.core.validators.RegexValidator object> | ||||||
|     value = re.sub(' at 0x[0-9a-f]{8,32}>', '>', value) |     value = re.sub(' at 0x[0-9a-f]{4,32}>', '>', value) | ||||||
| 
 | 
 | ||||||
|     return value |     return value | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user