2021-03-23 17:08:00 -04:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2021-03-23 17:11:11 -04:00
|
|
|
from .models import (CmsRedRiverVeteransScholarship,
|
|
|
|
CertificationDefinition, Certification,
|
2022-02-03 13:45:58 -05:00
|
|
|
InstructorOrVendor, SpecialProgram, Waiver)
|
2021-03-23 17:08:00 -04:00
|
|
|
|
|
|
|
|
2022-02-03 13:45:58 -05:00
|
|
|
@admin.register(CertificationDefinition)
|
2021-03-23 17:08:00 -04:00
|
|
|
class CertificationDefinitionAdmin(admin.ModelAdmin):
|
|
|
|
search_fields = ['certification_name', 'department']
|
|
|
|
|
|
|
|
|
2022-02-03 13:45:58 -05:00
|
|
|
@admin.register(Certification)
|
2021-03-23 17:08:00 -04:00
|
|
|
class CertificationAdmin(admin.ModelAdmin):
|
|
|
|
search_fields = ['name', 'certification__certification_name', 'certification__department']
|
2022-02-03 16:36:37 -05:00
|
|
|
autocomplete_fields = ['member']
|
2021-03-23 17:08:00 -04:00
|
|
|
|
|
|
|
|
2022-02-03 13:45:58 -05:00
|
|
|
@admin.register(InstructorOrVendor)
|
2021-03-23 17:08:00 -04:00
|
|
|
class InstructorOrVendorAdmin(admin.ModelAdmin):
|
|
|
|
search_fields = ['name']
|
|
|
|
|
|
|
|
|
2022-02-03 13:45:58 -05:00
|
|
|
@admin.register(SpecialProgram)
|
2021-03-23 17:08:00 -04:00
|
|
|
class SpecialProgramAdmin(admin.ModelAdmin):
|
|
|
|
search_fields = ['program_name']
|
|
|
|
|
|
|
|
|
2022-02-03 13:45:58 -05:00
|
|
|
@admin.register(Waiver)
|
2021-03-23 17:08:00 -04:00
|
|
|
class WaiverAdmin(admin.ModelAdmin):
|
|
|
|
search_fields = ['name']
|
|
|
|
|
|
|
|
|
|
|
|
admin.site.register(CmsRedRiverVeteransScholarship)
|
2022-02-03 13:45:58 -05:00
|
|
|
|