Use .count to gain a smidge of efficiency when checking for
a ballot set, and use the right comment syntax. - Legacy-Id: 193
This commit is contained in:
parent
e75561a2d0
commit
2b46e031e2
|
@ -12,7 +12,7 @@
|
||||||
<div class="largefont">
|
<div class="largefont">
|
||||||
Detail Info
|
Detail Info
|
||||||
</div>
|
</div>
|
||||||
{% if object.ballot_others %}
|
{% if object.ballot_others.count %}
|
||||||
<div align="right">
|
<div align="right">
|
||||||
<a href="#action">Action List</a>
|
<a href="#action">Action List</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -203,12 +203,14 @@
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% if object.ballot_others %}
|
{% if object.ballot_others.count %}
|
||||||
<a name="action"></a>
|
<a name="action"></a>
|
||||||
<table border="1" bgcolor="black">
|
<table border="1" bgcolor="black">
|
||||||
<tr><td><font color="white"><h3>Actions</h3></font>
|
<tr><td><font color="white"><h3>Actions</h3></font>
|
||||||
{# this "regroup" is to get the data structure into the shape
|
{% comment %}
|
||||||
# that search_result_table wants - it doesn't do anything real. #}
|
# this "regroup" is to get the data structure into the shape
|
||||||
|
# that search_result_table wants - it doesn't do anything real.
|
||||||
|
{% endcomment %}
|
||||||
{% regroup object.ballot_primary by docstate as grouped %}
|
{% regroup object.ballot_primary by docstate as grouped %}
|
||||||
{% include "idtracker/search_result_table.html" %}
|
{% include "idtracker/search_result_table.html" %}
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in a new issue