We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d9d082 commit d44951bCopy full SHA for d44951b
tests/admin_views/tests.py
@@ -1354,6 +1354,9 @@ def test_app_index_context(self):
1354
)
1355
self.assertEqual(response.context["title"], "Admin_Views administration")
1356
self.assertEqual(response.context["app_label"], "admin_views")
1357
+ # Models are sorted alphabetically by default.
1358
+ models = [model["name"] for model in response.context["app_list"][0]["models"]]
1359
+ self.assertSequenceEqual(models, sorted(models))
1360
1361
def test_change_view_subtitle_per_object(self):
1362
response = self.client.get(
0 commit comments