Fakultas Ilmu Komputer UI

Verified Commit 9a56002a authored by Giovan Isa Musthofa's avatar Giovan Isa Musthofa
Browse files

[GREEN] Add download_query to JadwalDonor

parent 7c5af83c
......@@ -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
......
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