summaryrefslogtreecommitdiff
path: root/tests/modeladmin
diff options
context:
space:
mode:
authorDavid Szotten <davidszotten@gmail.com>2017-03-02 15:25:05 +0000
committerTim Graham <timograham@gmail.com>2017-03-02 10:25:05 -0500
commitd82ee32aac323b7260cc95278c69b81d98dbd00a (patch)
tree3c5bd1f02b931194d783a888ac636a4c6a241c42 /tests/modeladmin
parent7588d7e439a5deb7f534bdeb2abe407b937e3c1a (diff)
Fixed #27889 -- Fixed incorrect check error if ModelAdmin.ordering refers to 'pk'.
Diffstat (limited to 'tests/modeladmin')
-rw-r--r--tests/modeladmin/test_checks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modeladmin/test_checks.py b/tests/modeladmin/test_checks.py
index c90ed64958..decddee591 100644
--- a/tests/modeladmin/test_checks.py
+++ b/tests/modeladmin/test_checks.py
@@ -794,7 +794,7 @@ class OrderingCheckTests(CheckTestCase):
def test_valid_case(self):
class TestModelAdmin(ModelAdmin):
- ordering = ('name',)
+ ordering = ('name', 'pk')
self.assertIsValid(TestModelAdmin, ValidationTestModel)