Skip to content

Commit 3d35c2b

Browse files
committed
bumped version
1 parent cad6447 commit 3d35c2b

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

CHANGES

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
Changes
22
=======
33

4+
0.44.1
5+
------
6+
Updated ``to_dict`` so it works with nested objects, as introduced by the
7+
``prefech`` functionality.
8+
9+
For example:
10+
11+
.. code-block:: python
12+
13+
band = Band.objects(Band.manager).first().run_sync()
14+
15+
>>> band.to_dict()
16+
{'id': 1, 'name': 'Pythonistas', 'manager': {'id': 1, 'name': 'Guido'}}
17+
18+
It also works with filtering:
19+
20+
.. code-block:: python
21+
22+
>>> band.to_dict(Band.name, Band.manager.name)
23+
{'name': 'Pythonistas', 'manager': {'name': 'Guido'}}
24+
425
0.44.0
526
------
627
Added the ability to prefetch related objects. Here's an example:

piccolo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__VERSION__ = "0.44.0"
1+
__VERSION__ = "0.44.1"

0 commit comments

Comments
 (0)