From 8a54526592b3484b648b5acdf00fb3687586bb95 Mon Sep 17 00:00:00 2001 From: Matt Robenolt Date: Sat, 9 May 2015 17:47:52 -0700 Subject: [PATCH] Removed redundant removal of hyphens in UUIDField. --- django/db/models/fields/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index 3354bf6edf..98594b6127 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -2366,7 +2366,7 @@ class UUIDField(Field): def get_db_prep_value(self, value, connection, prepared=False): if isinstance(value, six.string_types): - value = uuid.UUID(value.replace('-', '')) + value = uuid.UUID(value) if isinstance(value, uuid.UUID): if connection.features.has_native_uuid_field: return value