Commit 7a6a703e authored by Gabriel Detraz's avatar Gabriel Detraz

Oubli les clubs pour l'affichage factures

parent 5b2ac094
......@@ -29,7 +29,7 @@
{% endif %}
Jusqu'au {{ luser.fin_connexion.value }}
</span>
(<a href="{% url 'factures:index' %}">détails</a>)
(<a href="{% url 'factures:liste' 'club' luser.cid.0 %}">détails</a>)
</div>
{% if cablage %}
<div class="four columns">
......
......@@ -32,7 +32,7 @@ class IndexView(CableurOrSelfMixin, View):
if ptype=="adh":
luser = conn_pool.get_conn(request.user).search(u'aid=%s' % aid)[0]
elif ptype=="club":
luser = conn_pool.get_conn(request.user).search(u'cid=%s' % aid)[0]
luser = conn_pool.get_conn(request.user).search(u'cid=%s' % cid)[0]
return render(request, self.template_name, {'luser': luser})
@method_decorator(login_required)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment