Skip to content

Commit df10b49

Browse files
committed
bumped version
1 parent db09579 commit df10b49

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

CHANGES

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

4+
0.38.0
5+
------
6+
``get_or_create`` now supports more complex where clauses. For example:
7+
8+
.. code-block:: python
9+
10+
row = await Band.objects().get_or_create(
11+
(Band.name == 'Pythonistas') & (Band.popularity == 1000)
12+
).run()
13+
14+
And you can find out whether the row was created or not using
15+
``row._was_created``.
16+
17+
Thanks to @wmshort for reporting this issue.
18+
419
0.37.0
520
------
621
Added ``ModelBuilder``, which can be used to generate data for tests (courtesy

piccolo/__init__.py

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

0 commit comments

Comments
 (0)