From 03ad109aa497767eca886be7ca248c686f19ba73 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 21 Jul 2022 18:49:24 -0400 Subject: [PATCH] [paperwork] Add list_display to InstructorOrVendor, SpecialProgram, and Waiver --- paperwork/admin.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/paperwork/admin.py b/paperwork/admin.py index 86aee5c..ef6ca05 100644 --- a/paperwork/admin.py +++ b/paperwork/admin.py @@ -115,16 +115,44 @@ class CertificationAdmin(admin.ModelAdmin): @admin.register(InstructorOrVendor) class InstructorOrVendorAdmin(admin.ModelAdmin): search_fields = ["name"] + list_display = [ + "name", + "instructor_agreement_date", + "w9_date", + "phone", + "email_address", + ] @admin.register(SpecialProgram) class SpecialProgramAdmin(admin.ModelAdmin): search_fields = ["program_name"] + list_display = [ + "program_name", + "discount_percent", + "discount_code", + "membership_code", + "start_date", + "end_date", + "program_amount", + "program_status", + ] @admin.register(Waiver) class WaiverAdmin(admin.ModelAdmin): search_fields = ["name"] + list_display = [ + "name", + "date", + "emergency_contact_name", + "emergency_contact_number", + "waiver_version", + "guardian_name", + "guardian_relation", + "guardian_date", + ] + admin.site.register(CmsRedRiverVeteransScholarship)