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.
2 parents bf280b1 + 58f3e11 commit 8c22aaeCopy full SHA for 8c22aae
CHANGES
@@ -1,6 +1,24 @@
1
Changes
2
=======
3
4
+0.38.1
5
+------
6
+Minor changes to ``get_or_create`` to make sure it handles joins correctly.
7
+
8
+.. code-block:: python
9
10
+ instance = (
11
+ Band.objects()
12
+ .get_or_create(
13
+ (Band.name == "My new band")
14
+ & (Band.manager.name == "Excellent manager")
15
+ )
16
+ .run_sync()
17
18
19
+In this situation, there are two columns called ``name`` - we need to make sure
20
+the correct value is applied if the row doesn't exist.
21
22
0.38.0
23
------
24
``get_or_create`` now supports more complex where clauses. For example:
piccolo/__init__.py
@@ -1 +1 @@
-__VERSION__ = "0.38.0"
+__VERSION__ = "0.38.1"
0 commit comments