35 lines
918 B
Python
35 lines
918 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']
|
|
|
|
|
|
@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)
|
|
|