Sort people by notability

Better errors and tidy
Nicer date formats
This commit is contained in:
Sam Wenham
2019-04-02 02:04:38 +01:00
parent c4301cf6df
commit 05c5e26e99
5 changed files with 6 additions and 9 deletions

View File

@@ -8,12 +8,12 @@
<h2>Notable expoers</h2>
<table class="searchable">
<tr><th>Person</th><th>First</th><th>Last</th><th>Notability</th></tr>
{% for person in notablepersons %}
{% for person in notablepersons|dictsortreversed:"notability" %}
<tr>
<td><a href="{{ person.get_absolute_url }}">{{person|wiki_to_html_short}}</a></td>
<td><a href="{{ person.first.get_absolute_url }}">{{ person.first.expedition.year }}</a></td>
<td><a href="{{ person.last.get_absolute_url }}">{{ person.last.expedition.year }}</a></td>
<td>{{person.notability}}</td>
<td>{{person.notability|floatformat:2}}</td>
</tr>
{% endfor %}
</table>