mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Refs #29426 -- Made UUIDField render values with dashes.
This commit is contained in:
@@ -1187,7 +1187,7 @@ class UUIDField(CharField):
|
||||
|
||||
def prepare_value(self, value):
|
||||
if isinstance(value, uuid.UUID):
|
||||
return value.hex
|
||||
return str(value)
|
||||
return value
|
||||
|
||||
def to_python(self, value):
|
||||
|
||||
Reference in New Issue
Block a user