From bf86d07c73a6b86cc087cec8b4c25f2ca3e23691 Mon Sep 17 00:00:00 2001 From: collerek Date: Sat, 28 Nov 2020 11:28:46 +0100 Subject: [PATCH] allow uuid_format add more tests and update docs --- docs/releases.md | 5 +++-- ormar/__init__.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/releases.md b/docs/releases.md index ef4791d..0bc4a00 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -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. 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. + Sample: - hex value = c616ab438cce49dbbf4380d109251dce - string value = c616ab43-8cce-49db-bf43-80d109251dce + * hex value = c616ab438cce49dbbf4380d109251dce + * string value = c616ab43-8cce-49db-bf43-80d109251dce # 0.5.3 diff --git a/ormar/__init__.py b/ormar/__init__.py index 774dea1..e2d78c8 100644 --- a/ormar/__init__.py +++ b/ormar/__init__.py @@ -30,7 +30,7 @@ class UndefinedType: # pragma no cover Undefined = UndefinedType() -__version__ = "0.6.0" +__version__ = "0.5.4" __all__ = [ "Integer", "BigInteger",