cof -- Fix the club list view

This commit is contained in:
Aurélien Delobelle 2018-01-20 22:24:25 +01:00
parent a5071aa257
commit bbe46645f7

View file

@ -566,7 +566,7 @@ def liste_clubs(request):
if request.user.profile.is_buro:
data = {'owned_clubs': clubs.all()}
else:
data = {'owned_clubs': request.user.clubs_geres,
data = {'owned_clubs': request.user.clubs_geres.all(),
'other_clubs': clubs.exclude(respos=request.user)}
return render(request, 'liste_clubs.html', data)