summaryrefslogtreecommitdiff
path: root/tests/async/models.py
diff options
context:
space:
mode:
authorJon Janzen <jon@jonjanzen.com>2022-11-04 15:22:32 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-11-08 08:13:56 +0100
commit9fb57fcc703749269987f54f9ee1d71bd9a2dbca (patch)
tree494a8b6dc0c44c75c5c5b0862554e76a01e2b304 /tests/async/models.py
parent8740d2f452186b30374bf29240144a5048ae0eb4 (diff)
[4.1.x] Fixed #34139 -- Fixed acreate(), aget_or_create(), and aupdate_or_create() methods for related managers.
Bug in 58b27e0dbb3d31ca1438790870b2b51ecdb10500. Backport of 7b94847e384b1a8c05a7d4c8778958c0290bdf9a from main
Diffstat (limited to 'tests/async/models.py')
-rw-r--r--tests/async/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/async/models.py b/tests/async/models.py
index 8cb051258c..a09ff79914 100644
--- a/tests/async/models.py
+++ b/tests/async/models.py
@@ -9,3 +9,7 @@ class RelatedModel(models.Model):
class SimpleModel(models.Model):
field = models.IntegerField()
created = models.DateTimeField(default=timezone.now)
+
+
+class ManyToManyModel(models.Model):
+ simples = models.ManyToManyField("SimpleModel")