1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #31573 -- Made QuerySet.update() respect ordering on MariaDB/MySQL.

This commit is contained in:
davidchorpash
2020-06-19 22:55:03 -06:00
committed by Mariusz Felisiak
parent 060576b0ab
commit 779e615e36
5 changed files with 79 additions and 2 deletions

View File

@@ -41,3 +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')
class UniqueNumber(models.Model):
number = models.IntegerField(unique=True)