diff options
| author | David Szotten <davidszotten@gmail.com> | 2017-03-02 15:25:05 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-03-02 10:58:47 -0500 |
| commit | 93c8e2d50d636e46ded9c6cfed0b0c4623457b74 (patch) | |
| tree | 3f28af84133bec36291360abfda3a2ff201f7175 /tests/modeladmin | |
| parent | f834c278b5476e02e846b22a94f433aef711b1e0 (diff) | |
[1.11.x] Fixed #27889 -- Fixed incorrect check error if ModelAdmin.ordering refers to 'pk'.
Backport of d82ee32aac323b7260cc95278c69b81d98dbd00a from master
Diffstat (limited to 'tests/modeladmin')
| -rw-r--r-- | tests/modeladmin/test_checks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modeladmin/test_checks.py b/tests/modeladmin/test_checks.py index 0c66544b6b..ad43f34837 100644 --- a/tests/modeladmin/test_checks.py +++ b/tests/modeladmin/test_checks.py @@ -796,7 +796,7 @@ class OrderingCheckTests(CheckTestCase): def test_valid_case(self): class TestModelAdmin(ModelAdmin): - ordering = ('name',) + ordering = ('name', 'pk') self.assertIsValid(TestModelAdmin, ValidationTestModel) |
