mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[4.1.x] Refs #28897 -- Added test for QuerySet.update() on querysets ordered by inline m2m annotation.
Backport of f4680a112d from main
This commit is contained in:
committed by
Mariusz Felisiak
parent
0fb02522f9
commit
ccb243847e
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user