From 5552f9b8cce2f76ba7dbb3a3773ab8ef51afbf28 Mon Sep 17 00:00:00 2001 From: ThomasBidot <77505438+ThomasBidot@users.noreply.github.com> Date: Fri, 16 Apr 2021 18:07:49 +0200 Subject: [PATCH] Ordering students by updated_date --- profiles/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiles/admin.py b/profiles/admin.py index 6aefa1a..9c8efa2 100644 --- a/profiles/admin.py +++ b/profiles/admin.py @@ -50,5 +50,5 @@ class StudentAdmin(ProfileAdminMixin, admin.ModelAdmin,ExportCsvMixin): list_filter = (('school',MultiSelectFieldListFilter), 'year', 'registration__validated') class Meta: # noqa model = Student - ordering = ['updated_date'] - actions = ["export_as_csv"] \ No newline at end of file + ordering = ['-updated_date'] + actions = ["export_as_csv"] -- GitLab