Fakultas Ilmu Komputer UI

Commit f3ca4061 authored by Nabila Febri Viola's avatar Nabila Febri Viola
Browse files

[REFACTOR] Customize jadwal donor admin

parent df036e88
from django.contrib import admin
from django.conf import settings
from django.http import HttpResponse
from donor.models import JadwalDonor, DaftarDonor
......@@ -65,8 +66,12 @@ download_jadwaldonor.short_description = 'Download Jadwal Donor as Excel Workboo
@admin.register(JadwalDonor)
class JadwalDonorAdmin(admin.ModelAdmin):
list_filter = ('kecamatan', 'time_start', 'category')
search_fields = ('time_start', 'location')
actions = [download_jadwaldonor]
class Media:
js = [settings.MEDIA_URL+'/js/acara_donor_custom_admin.js', ]
@admin.register(DaftarDonor)
class DaftarDonorAdmin(admin.ModelAdmin):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment