mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +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:
committed by
Mariusz Felisiak
parent
76e37513e2
commit
7b94847e38
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user