mirror of
https://github.com/django/django.git
synced 2025-09-27 04:29:17 +00:00
Removed redundant removal of hyphens in UUIDField.
This commit is contained in:
parent
3074c5b19e
commit
8a54526592
1 changed files with 1 additions and 1 deletions
|
@ -2366,7 +2366,7 @@ class UUIDField(Field):
|
||||||
|
|
||||||
def get_db_prep_value(self, value, connection, prepared=False):
|
def get_db_prep_value(self, value, connection, prepared=False):
|
||||||
if isinstance(value, six.string_types):
|
if isinstance(value, six.string_types):
|
||||||
value = uuid.UUID(value.replace('-', ''))
|
value = uuid.UUID(value)
|
||||||
if isinstance(value, uuid.UUID):
|
if isinstance(value, uuid.UUID):
|
||||||
if connection.features.has_native_uuid_field:
|
if connection.features.has_native_uuid_field:
|
||||||
return value
|
return value
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue