diff options
| author | Tom Christie | 2014-09-11 13:43:46 +0100 |
|---|---|---|
| committer | Tom Christie | 2014-09-11 13:43:46 +0100 |
| commit | 54ccf7230d0fcdabe8c2457539e314893915a34b (patch) | |
| tree | d407023f33ce90f76745a087ef02339c014db0d5 | |
| parent | de301f3b6647e1c79a506405a88071ef977418d1 (diff) | |
| download | django-rest-framework-54ccf7230d0fcdabe8c2457539e314893915a34b.tar.bz2 | |
Improve memory address removal for serializer representations
| -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 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 |
