From 54ccf7230d0fcdabe8c2457539e314893915a34b Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 11 Sep 2014 13:43:46 +0100 Subject: Improve memory address removal for serializer representations --- rest_framework/utils/representation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rest_framework/utils/representation.py') diff --git a/rest_framework/utils/representation.py b/rest_framework/utils/representation.py index 1de21597..e2a37497 100644 --- a/rest_framework/utils/representation.py +++ b/rest_framework/utils/representation.py @@ -17,7 +17,7 @@ def smart_repr(value): # # Should be presented as # - value = re.sub(' at 0x[0-9a-f]{8,10}>', '>', value) + value = re.sub(' at 0x[0-9a-f]{8,32}>', '>', value) return value -- cgit v1.2.3