diff --git a/rest_framework/utils/representation.py b/rest_framework/utils/representation.py index 92075171..49f829c1 100644 --- a/rest_framework/utils/representation.py +++ b/rest_framework/utils/representation.py @@ -40,7 +40,7 @@ def smart_repr(value): # # Should be presented as # - value = re.sub(' at 0x[0-9a-f]{4,32}>', '>', value) + value = re.sub(' at 0x[0-9A-Fa-f]{4,32}>', '>', value) return value