feat(destinations): show defer-waitlist counts

This commit is contained in:
Ethan Nguyen 2021-04-20 22:32:05 -04:00
parent 9a91171e63
commit b5899bc56a
No known key found for this signature in database
GPG Key ID: B4CA5339AF911920
2 changed files with 20 additions and 0 deletions

View File

@ -125,6 +125,20 @@ class CollegeDestinationListView(
decision__user__publish_data=True,
),
),
count_defer_wl_admit=Count(
"decision",
filter=Q(
decision__admission_status=Decision.DEFER_WL_A,
decision__user__publish_data=True,
),
),
count_defer_wl_deny=Count(
"decision",
filter=Q(
decision__admission_status=Decision.DEFER_WL_D,
decision__user__publish_data=True,
),
),
count_deny=Count(
"decision",
filter=Q(

View File

@ -40,6 +40,8 @@
<th scope="col">Deferred</th>
<th scope="col">Deferred-Admitted</th>
<th scope="col">Deferred-Denied</th>
<th scope="col">Deferred-Waitlisted-Admitted</th>
<th scope="col">Deferred-Waitlisted-Denied</th>
<th scope="col">Denied</th>
</tr>
</thead>
@ -55,6 +57,8 @@
<td>{{ college.count_defer }}</td>
<td>{{ college.count_defer_admit }}</td>
<td>{{ college.count_defer_deny }}</td>
<td>{{ college.count_defer_wl_admit }}</td>
<td>{{ college.count_defer_wl_deny }}</td>
<td>{{ college.count_deny }}</td>
</tr>
{% empty %}
@ -68,6 +72,8 @@
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
{% endfor %}
</tbody>