We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db09579 commit df10b49Copy full SHA for df10b49
CHANGES
@@ -1,6 +1,21 @@
1
Changes
2
=======
3
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
19
0.37.0
20
------
21
Added ``ModelBuilder``, which can be used to generate data for tests (courtesy
piccolo/__init__.py
@@ -1 +1 @@
-__VERSION__ = "0.37.0"
+__VERSION__ = "0.38.0"
0 commit comments