We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d9efff commit ef7aeb7Copy full SHA for ef7aeb7
morango/models/fields/uuids.py
@@ -32,6 +32,9 @@ def to_python(self, value):
32
value = super(UUIDField, self).to_python(value)
33
return value.hex if isinstance(value, uuid.UUID) else value
34
35
+ def value_from_object(self, obj):
36
+ return self.to_python(super(UUIDField, self).value_from_object(obj))
37
+
38
39
class UUIDModelMixin(models.Model):
40
"""
0 commit comments