mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #27889 -- Fixed incorrect check error if ModelAdmin.ordering refers to 'pk'.
This commit is contained in:
parent
7588d7e439
commit
d82ee32aac
2 changed files with 3 additions and 2 deletions
|
@ -794,7 +794,7 @@ class OrderingCheckTests(CheckTestCase):
|
|||
|
||||
def test_valid_case(self):
|
||||
class TestModelAdmin(ModelAdmin):
|
||||
ordering = ('name',)
|
||||
ordering = ('name', 'pk')
|
||||
|
||||
self.assertIsValid(TestModelAdmin, ValidationTestModel)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue