Kaydet (Commit) 8a545265 authored tarafından Matt Robenolt's avatar Matt Robenolt Kaydeden (comit) Tim Graham

Removed redundant removal of hyphens in UUIDField.

üst 3074c5b1
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment