From 6fddea964a2647ad2c51bf7cafd2a9972119410b Mon Sep 17 00:00:00 2001 From: Seon82 <46298009+Seon82@users.noreply.github.com> Date: Tue, 1 Dec 2020 18:00:58 +0100 Subject: [PATCH] Updated student admin filters (#28) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Password reset feature (#8) * Add Django Rest auth module * Try to make the send reset password email work * Modified template mail for reset * Add Django Rest auth module * Try to make the send reset password email work * Modified template mail for reset * test * Added utf-8 support to exported csv and switched delimiter from , to ; in admin interface * Disabled emails while in dev * Added multi selection filter in admin * Fixed mail settings * Added year field to Tutor serializer * Fixed year updated before registration form filled * commit for automatic deploy * Testing CI * Added filtering in admin for registration validation * Added filter to student admin Co-authored-by: chiahetcho <44137047+chiahetcho@users.noreply.github.com> Co-authored-by: florimondmanca <florimond.manca@gmail.com> Co-authored-by: Arthur Guédon <arthur.guedon@student-cs.fr> Co-authored-by: Arthur Guédon <60623551+arthurgdn@users.noreply.github.com> --- profiles/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/admin.py b/profiles/admin.py index 9109a6f..f7fc71a 100644 --- a/profiles/admin.py +++ b/profiles/admin.py @@ -47,7 +47,7 @@ class TutorAdmin(ProfileAdminMixin, admin.ModelAdmin,ExportCsvMixin): @admin.register(Student) class StudentAdmin(ProfileAdminMixin, admin.ModelAdmin,ExportCsvMixin): """Student admin panel.""" - list_filter = (('school',MultiSelectFieldListFilter), 'year') + list_filter = (('school',MultiSelectFieldListFilter), 'year', 'registration__validated') class Meta: # noqa model = Student actions = ["export_as_csv"] \ No newline at end of file -- GitLab