allow uuid_format add more tests and update docs
This commit is contained in:
@ -3,9 +3,10 @@
|
|||||||
* Allow to pass `uuid_format` (allowed 'hex'(default) or 'string') to `UUID` field to change the format in which it's saved.
|
* Allow to pass `uuid_format` (allowed 'hex'(default) or 'string') to `UUID` field to change the format in which it's saved.
|
||||||
By default field is saved in hex format (trimmed to 32 chars (without dashes)), but you can pass
|
By default field is saved in hex format (trimmed to 32 chars (without dashes)), but you can pass
|
||||||
format='string' to use 36 (with dashes) instead to adjust to existing db or other libraries.
|
format='string' to use 36 (with dashes) instead to adjust to existing db or other libraries.
|
||||||
|
|
||||||
Sample:
|
Sample:
|
||||||
hex value = c616ab438cce49dbbf4380d109251dce
|
* hex value = c616ab438cce49dbbf4380d109251dce
|
||||||
string value = c616ab43-8cce-49db-bf43-80d109251dce
|
* string value = c616ab43-8cce-49db-bf43-80d109251dce
|
||||||
|
|
||||||
# 0.5.3
|
# 0.5.3
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@ class UndefinedType: # pragma no cover
|
|||||||
|
|
||||||
Undefined = UndefinedType()
|
Undefined = UndefinedType()
|
||||||
|
|
||||||
__version__ = "0.6.0"
|
__version__ = "0.5.4"
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"Integer",
|
"Integer",
|
||||||
"BigInteger",
|
"BigInteger",
|
||||||
|
|||||||
Reference in New Issue
Block a user