mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #34139 -- Fixed acreate(), aget_or_create(), and aupdate_or_create() methods for related managers.
Bug in 58b27e0dbb
.
This commit is contained in:
parent
76e37513e2
commit
7b94847e38
8 changed files with 155 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue