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
9a56002a
Verified
Commit
9a56002a
authored
Jun 02, 2020
by
Giovan Isa Musthofa
Browse files
[GREEN] Add download_query to JadwalDonor
parent
7c5af83c
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/donor/models.py
View file @
9a56002a
...
...
@@ -45,6 +45,10 @@ class JadwalDonor(models.Model):
time_end
=
localtime
(
self
.
time_end
)
return
f
"
{
self
.
location
}
,
{
time_start
.
date
()
}
(
{
time_start
.
time
()
}
-
{
time_end
.
time
()
}
)"
@
classmethod
def
download_query
(
cls
,
ids
):
return
DaftarDonor
.
objects
.
filter
(
jadwal_donor__id__in
=
ids
,
has_attended
=
True
)
class
Meta
:
pass
...
...
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