1
0
mirror of https://github.com/django/django.git synced 2025-06-15 08:29:11 +00:00

Update tests.py

This commit is contained in:
Krishna2864 2023-12-02 14:14:35 +05:30 committed by GitHub
parent caeabd46d7
commit 02f1733043
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,4 +250,5 @@ class TestCustomAdminOrdering(TestCase):
ReportData.owner.field, request=None
)
expected_order = [self.user2, self.user1] # Expected ordering by permissions count
self.assertEqual(list(fk_field.queryset), expected_order)
self.assertEqual(list(fk_field.queryset), expected_order)