mirror of
https://github.com/etnguyen03/tjdests.git
synced 2025-04-20 17:50:16 -04:00
feat(destinations): show defer-waitlist counts
This commit is contained in:
parent
9a91171e63
commit
b5899bc56a
|
@ -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(
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user