Commit 3318f75a by Tom Christie

Improve memory address removal for serializer representations

parent 54ccf723
......@@ -17,7 +17,7 @@ def smart_repr(value):
# <django.core.validators.RegexValidator object at 0x1047af050>
# Should be presented as
# <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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment