summaryrefslogtreecommitdiff
path: root/tests/m2m_through/models.py
diff options
context:
space:
mode:
authorAnssi Kääriäinen <anssi.kaariainen@thl.fi>2016-01-20 11:05:48 +0200
committerTim Graham <timograham@gmail.com>2016-01-20 19:13:05 -0500
commitee596888e1149864e7828f5cf63c0eda395744c3 (patch)
tree253a10367482c35c32fa47fa91bdbaaca7987a02 /tests/m2m_through/models.py
parent2d28144c9519f4e4397c70f045c2b1d31437bf69 (diff)
Fixed #26092 -- Fixed QuerySet.order_by() regression with an M2M through model.
Diffstat (limited to 'tests/m2m_through/models.py')
-rw-r--r--tests/m2m_through/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/m2m_through/models.py b/tests/m2m_through/models.py
index c25303f6f5..dab3be5164 100644
--- a/tests/m2m_through/models.py
+++ b/tests/m2m_through/models.py
@@ -65,6 +65,7 @@ class CustomMembership(models.Model):
class Meta:
db_table = "test_table"
+ ordering = ["date_joined"]
class TestNoDefaultsOrNulls(models.Model):