From 01803c8cf04ab6aeb9c7881fc978f0847a68e411 Mon Sep 17 00:00:00 2001 From: Bartuccio Antoine Date: Thu, 25 Apr 2019 19:51:30 +0200 Subject: [PATCH] clubs: remove useless self.request_user into ClubMemberView --- club/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/club/views.py b/club/views.py index 74be7b71..7f50be06 100644 --- a/club/views.py +++ b/club/views.py @@ -435,7 +435,7 @@ class ClubMembersView(ClubTabsMixin, CanViewMixin, DetailFormView): def get_form_kwargs(self): kwargs = super(ClubMembersView, self).get_form_kwargs() - kwargs["request_user"] = self.request_user + kwargs["request_user"] = self.request.user kwargs["club"] = self.get_object() kwargs["club_members"] = self.members return kwargs @@ -463,7 +463,6 @@ class ClubMembersView(ClubTabsMixin, CanViewMixin, DetailFormView): return resp def dispatch(self, request, *args, **kwargs): - self.request_user = request.user self.members = ( self.get_object().members.filter(end_date=None).order_by("-role").all() )