From 37dc535d6d5d2de5e1c639044ee7d212fef23828 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sat, 1 Aug 2020 23:05:14 +0200 Subject: [PATCH] Display only one user --- apps/member/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/member/views.py b/apps/member/views.py index 30fbb139..d065b2b6 100644 --- a/apps/member/views.py +++ b/apps/member/views.py @@ -131,7 +131,7 @@ class UserDetailView(ProtectQuerysetMixin, LoginRequiredMixin, DetailView): """ We can't display information of a not registered user. """ - return super().get_queryset().filter(profile__registration_valid=True) + return super().get_queryset().filter(profile__registration_valid=True).distinct() def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs)