diff --git a/machines/templates/machines/aff_machines.html b/machines/templates/machines/aff_machines.html index f6da4165..56eec21d 100644 --- a/machines/templates/machines/aff_machines.html +++ b/machines/templates/machines/aff_machines.html @@ -28,7 +28,6 @@ with this program; if not, write to the Free Software Foundation, Inc., {% include "pagination.html" with list=machines_list %} {% endif %} - diff --git a/users/templates/users/profil.html b/users/templates/users/profil.html index 169524f5..abba61a2 100644 --- a/users/templates/users/profil.html +++ b/users/templates/users/profil.html @@ -245,7 +245,7 @@ non adhérent{% endif %} et votre connexion est {% if users.has_access %}

Machines - {{machines_list.count}} + {{nb_machines}}

diff --git a/users/views.py b/users/views.py index a86a6e47..2614cb9c 100644 --- a/users/views.py +++ b/users/views.py @@ -814,6 +814,7 @@ def profil(request, users, **_kwargs): pagination_large_number = GeneralOption.get_cached_value( 'pagination_large_number' ) + nb_machines = machines.count() machines = re2o_paginator(request, machines, pagination_large_number) factures = Facture.objects.filter(user=users) factures = SortTable.sort( @@ -844,6 +845,7 @@ def profil(request, users, **_kwargs): { 'users': users, 'machines_list': machines, + 'nb_machines' : nb_machines, 'facture_list': factures, 'ban_list': bans, 'white_list': whitelists,