From 27e0f4a7cede569d0b7faa7ddf5a2e313e979d60 Mon Sep 17 00:00:00 2001 From: robo-mop Date: Sun, 19 Feb 2023 09:02:14 +0530 Subject: [PATCH] Better admin display --- swd/main/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/swd/main/admin.py b/swd/main/admin.py index fcbb656e..05e05626 100644 --- a/swd/main/admin.py +++ b/swd/main/admin.py @@ -129,6 +129,7 @@ def delete_students(modeladmin, request, queryset): @admin.register(Student) class StudentAdmin(ExportMixin, admin.ModelAdmin): search_fields = ['name', 'bitsId', 'user__username'] + list_display = ['name', 'bitsId', 'gender', 'phone'] actions = [add_new_students, delete_students ] resource_class = StudentResource def get_export_formats(self):