From 1d2a224aa471daec21803badc789f85628f50e3d Mon Sep 17 00:00:00 2001 From: Daniel Townsend Date: Fri, 21 Jul 2023 15:05:10 +0100 Subject: [PATCH] bumped version --- CHANGES.rst | 26 ++++++++++++++++++++++++++ piccolo/__init__.py | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index c8b4cd045..85dd46a27 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,32 @@ Changes ======= +0.119.0 +------- + +``ModelBuilder`` now works with ``LazyTableReference`` (which is used when we +have circular references caused by a ``ForeignKey``). + +With this table: + +.. code-block:: python + + class Band(Table): + manager = ForeignKey( + LazyTableReference( + 'Manager', + module_path='some.other.folder.tables' + ) + ) + +We can now create a dynamic test fixture: + +.. code-block:: python + + my_model = await ModelBuilder.build(Band) + +------------------------------------------------------------------------------- + 0.118.0 ------- diff --git a/piccolo/__init__.py b/piccolo/__init__.py index 5907877d0..ca94cfb55 100644 --- a/piccolo/__init__.py +++ b/piccolo/__init__.py @@ -1 +1 @@ -__VERSION__ = "0.118.0" +__VERSION__ = "0.119.0"