Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2020
PPL-C
Diskominfo-D'Blood
Mantan Aab-D Blood
Commits
a6eca14a
Commit
a6eca14a
authored
Jun 02, 2020
by
Nabila Febri Viola
Browse files
[CHORES] Add more filter and change read-only fields in acara donor admin
parent
8ab3e74a
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/acara_donor/admin.py
View file @
a6eca14a
...
...
@@ -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'
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment