diff --git a/trombi/templates/trombi/detail.jinja b/trombi/templates/trombi/detail.jinja index d451525a..25d1859a 100644 --- a/trombi/templates/trombi/detail.jinja +++ b/trombi/templates/trombi/detail.jinja @@ -13,7 +13,7 @@ Export
- {% for u in object.users.all() %} + {% for u in object.users.order_by('user__nick_name') %}
{% set file = None %} {% if u.profile_pict %} diff --git a/trombi/templates/trombi/user_tools.jinja b/trombi/templates/trombi/user_tools.jinja index 44e3cdb4..8cda2bc3 100644 --- a/trombi/templates/trombi/user_tools.jinja +++ b/trombi/templates/trombi/user_tools.jinja @@ -24,7 +24,7 @@
{% endif %}
-{% for u in user.trombi_user.trombi.users.exclude(id=user.trombi_user.id) %} +{% for u in user.trombi_user.trombi.users.exclude(id=user.trombi_user.id).order_by('user__nick_name') %}
{% set file = None %} {% if u.profile_pict %}