add message
This commit is contained in:
parent
141a8b3ca2
commit
8c642afa2c
|
@ -8,8 +8,9 @@
|
||||||
{% if key|length != 0 %}
|
{% if key|length != 0 %}
|
||||||
<a
|
<a
|
||||||
class="btn btn-default {% if cities == key %}btn-primary{% endif %}"
|
class="btn btn-default {% if cities == key %}btn-primary{% endif %}"
|
||||||
href="{% url 'polls_media_unqualified' %}?province={{province}}&cities={{key}}}&district={{district}}&level={{level}}"
|
href="{% url 'polls_media_unqualified' %}?province={{province}}&cities={{key}}&district={{district}}&level={{level}}"
|
||||||
role="button"
|
role="button"
|
||||||
|
style="margin: 5px; 2px;"
|
||||||
>{{value}}</a
|
>{{value}}</a
|
||||||
>
|
>
|
||||||
{% endif%}
|
{% endif%}
|
||||||
|
@ -33,16 +34,14 @@
|
||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th>名称</th>
|
<th>名称</th>
|
||||||
<th>单位</th>
|
<th>单位</th>
|
||||||
<th>原因</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for m in medias %}
|
{% for m in medias %}
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">{{m.counter}}</th>
|
<th scope="row">{{forloop.counter}}</th>
|
||||||
<td>{{m.name}}</td>
|
<td>{{m.name}}</td>
|
||||||
<td>{{m.unit}}</td>
|
<td>{{m.unit}}</td>
|
||||||
<td>{{m.comment}}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -152,7 +152,8 @@ def monitor_unqualified_result(request):
|
||||||
district = request.GET.get('district','')
|
district = request.GET.get('district','')
|
||||||
version = request.GET.get('version', '0')
|
version = request.GET.get('version', '0')
|
||||||
level = request.GET.get('level', '0')
|
level = request.GET.get('level', '0')
|
||||||
q = UnqualifiedMedia.objects.filter(version=version)
|
print(province, cities, district, level, version)
|
||||||
|
q = UnqualifiedMedia.objects.filter(version=version).order_by('cities')
|
||||||
if province:
|
if province:
|
||||||
q = q.filter(province=province)
|
q = q.filter(province=province)
|
||||||
if cities:
|
if cities:
|
||||||
|
|
Loading…
Reference in New Issue