mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #27889 -- Fixed incorrect check error if ModelAdmin.ordering refers to 'pk'.
This commit is contained in:
committed by
Tim Graham
parent
7588d7e439
commit
d82ee32aac
@@ -794,7 +794,7 @@ class OrderingCheckTests(CheckTestCase):
|
||||
|
||||
def test_valid_case(self):
|
||||
class TestModelAdmin(ModelAdmin):
|
||||
ordering = ('name',)
|
||||
ordering = ('name', 'pk')
|
||||
|
||||
self.assertIsValid(TestModelAdmin, ValidationTestModel)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user