2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 07:11:52 +00:00

re-order names

This commit is contained in:
Philip Sargent 2024-07-17 14:05:58 +02:00
parent a6ca40becd
commit 00f5ffa1b6
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ def expedition(request, expeditionname):
if issunday := (date.weekday() == 6): # WALRUS if issunday := (date.weekday() == 6): # WALRUS
pcell["sunday"] = issunday pcell["sunday"] = issunday
prow.append(pcell) prow.append(pcell)
personexpodays.append({"personexpedition": personexpedition, "personrow": prow}) personexpodays.append({"personexpedition": personexpedition, "personrow": prow, "sortname": personexpedition.person.last_name})
ts[expeditionname] = { ts[expeditionname] = {
"year": int(expeditionname), "year": int(expeditionname),

View File

@ -44,7 +44,7 @@ an "<b>S</b>" for a survey trip. The colours of the "<b>T</b>" and "<b>S</b>" a
</th> </th>
{% endfor %} {% endfor %}
</tr> </tr>
{% for personexpoday in personexpodays %} {% for personexpoday in personexpodays|dictsort:"sortname" %}
<tr> <tr>
<td><a href="{{ personexpoday.personexpedition.get_absolute_url }}">{{personexpoday.personexpedition.person.fullname|safe}}</a></td> <td><a href="{{ personexpoday.personexpedition.get_absolute_url }}">{{personexpoday.personexpedition.person.fullname|safe}}</a></td>
{% for activities in personexpoday.personrow %} {% for activities in personexpoday.personrow %}