1
0
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:
Tim Graham
2018-08-17 18:43:35 -04:00
parent 53ebd4cb13
commit 838d6dcb86
3 changed files with 11 additions and 2 deletions

View File

@@ -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):