1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Refs #28897 -- Added test for QuerySet.update() on querysets ordered by inline m2m annotation.

This commit is contained in:
David Wobrock
2022-06-17 09:19:49 +02:00
committed by Mariusz Felisiak
parent e286ce17ff
commit f4680a112d
3 changed files with 13 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ class Foo(models.Model):
class Bar(models.Model):
foo = models.ForeignKey(Foo, models.CASCADE, to_field="target")
m2m_foo = models.ManyToManyField(Foo, related_name="m2m_foo")
x = models.IntegerField(default=0)
class UniqueNumber(models.Model):