cmsmanage/paperwork/admin.py

36 lines
955 B
Python

from django.contrib import admin
from .models import (CmsRedRiverVeteransScholarship,
CertificationDefinition, Certification,
InstructorOrVendor, SpecialProgram, Waiver)
@admin.register(CertificationDefinition)
class CertificationDefinitionAdmin(admin.ModelAdmin):
search_fields = ['certification_name', 'department']
@admin.register(Certification)
class CertificationAdmin(admin.ModelAdmin):
search_fields = ['name', 'certification__certification_name', 'certification__department']
autocomplete_fields = ['member']
@admin.register(InstructorOrVendor)
class InstructorOrVendorAdmin(admin.ModelAdmin):
search_fields = ['name']
@admin.register(SpecialProgram)
class SpecialProgramAdmin(admin.ModelAdmin):
search_fields = ['program_name']
@admin.register(Waiver)
class WaiverAdmin(admin.ModelAdmin):
search_fields = ['name']
admin.site.register(CmsRedRiverVeteransScholarship)