[paperwork] Add list_display to InstructorOrVendor, SpecialProgram, and Waiver
This commit is contained in:
parent
8466139224
commit
03ad109aa4
@ -115,16 +115,44 @@ class CertificationAdmin(admin.ModelAdmin):
|
|||||||
@admin.register(InstructorOrVendor)
|
@admin.register(InstructorOrVendor)
|
||||||
class InstructorOrVendorAdmin(admin.ModelAdmin):
|
class InstructorOrVendorAdmin(admin.ModelAdmin):
|
||||||
search_fields = ["name"]
|
search_fields = ["name"]
|
||||||
|
list_display = [
|
||||||
|
"name",
|
||||||
|
"instructor_agreement_date",
|
||||||
|
"w9_date",
|
||||||
|
"phone",
|
||||||
|
"email_address",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
@admin.register(SpecialProgram)
|
@admin.register(SpecialProgram)
|
||||||
class SpecialProgramAdmin(admin.ModelAdmin):
|
class SpecialProgramAdmin(admin.ModelAdmin):
|
||||||
search_fields = ["program_name"]
|
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)
|
@admin.register(Waiver)
|
||||||
class WaiverAdmin(admin.ModelAdmin):
|
class WaiverAdmin(admin.ModelAdmin):
|
||||||
search_fields = ["name"]
|
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)
|
admin.site.register(CmsRedRiverVeteransScholarship)
|
||||||
|
Loading…
Reference in New Issue
Block a user