Template fixes

This commit is contained in:
Skia
2016-09-15 11:51:05 +02:00
parent 35d811317c
commit 95b22cafe0
3 changed files with 113 additions and 84 deletions

View File

@ -31,9 +31,11 @@
<td>{{ customer.user.get_display_name() }}</td>
<td>{{ customer.user.promo or '' }}</td>
<td>
{% for m in customer.user.membership.filter(club__parent=None, end_date=None).all() %}
{% for m in customer.user.memberships.filter(club__parent=None, end_date=None,
role__gt=settings.SITH_MAXIMUM_FREE_ROLE).all() -%}
{%- if loop.index>1 -%}, {% endif -%}
{{ m.club.name }}
{% endfor %}
{%- endfor %}
</td>
<td>{{ r.selling_sum }} €</td>
<td>{{ '%.2f'|format(100 * r.selling_sum / total_sellings) }}</td>