diff options
| author | Tom Christie | 2014-09-11 13:50:53 +0100 |
|---|---|---|
| committer | Tom Christie | 2014-09-11 13:50:53 +0100 |
| commit | 3318f75a7166cbac76a40d0461ca7b3e4640d3a2 (patch) | |
| tree | f02392df25eefe3ac78ddfd5d889c267f67a359b /rest_framework/utils/representation.py | |
| parent | 54ccf7230d0fcdabe8c2457539e314893915a34b (diff) | |
| download | django-rest-framework-3318f75a7166cbac76a40d0461ca7b3e4640d3a2.tar.bz2 | |
Improve memory address removal for serializer representations
Diffstat (limited to 'rest_framework/utils/representation.py')
| -rw-r--r-- | rest_framework/utils/representation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/utils/representation.py b/rest_framework/utils/representation.py index e2a37497..1a4d1a62 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,32}>', '>', value) + value = re.sub(' at 0x[0-9a-f]{4,32}>', '>', value) return value |
