Fakultas Ilmu Komputer UI

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

[CHORES] Add more filter and change read-only fields in acara donor admin

parent 8ab3e74a
......@@ -5,13 +5,16 @@ from acara_donor.filters import AcaraDonorFilter
@admin.register(AcaraDonor)
class AcaraDonorAdmin(admin.ModelAdmin):
list_filter = ('status', AcaraDonorFilter, 'alamat_lokasi_donor')
list_filter = ('status', AcaraDonorFilter, 'kecamatan', 'kategori')
search_fields = ('waktu_mulai',)
readonly_fields = ('nomor',
'user',
'nama_institusi',
'alamat_institusi',
'no_telp_kantor',
'email_kantor',
'no_telp_kantor',
'nama_koor',
'email_koor',
'no_telp_koor')
'no_telp_koor',
'keterangan',
'foto_lokasi')
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