aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/utils
diff options
context:
space:
mode:
authorTom Christie2014-09-11 13:43:46 +0100
committerTom Christie2014-09-11 13:43:46 +0100
commit54ccf7230d0fcdabe8c2457539e314893915a34b (patch)
treed407023f33ce90f76745a087ef02339c014db0d5 /rest_framework/utils
parentde301f3b6647e1c79a506405a88071ef977418d1 (diff)
downloaddjango-rest-framework-54ccf7230d0fcdabe8c2457539e314893915a34b.tar.bz2
Improve memory address removal for serializer representations
Diffstat (limited to 'rest_framework/utils')
-rw-r--r--rest_framework/utils/representation.py2
1 files changed, 1 insertions, 1 deletions
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):
# <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,10}>', '>', value)
+ value = re.sub(' at 0x[0-9a-f]{8,32}>', '>', value)
return value