mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-02-17 05:31:20 +00:00
whitespaces compliance
This commit is contained in:
parent
2d18cb983f
commit
826573f553
@ -269,11 +269,13 @@ class PictureUpdateView(LoginRequiredMixin, FormMixin, DetailView):
|
|||||||
self.object.note.save()
|
self.object.note.save()
|
||||||
return super().form_valid(form)
|
return super().form_valid(form)
|
||||||
|
|
||||||
|
|
||||||
class ProfilePictureUpdateView(PictureUpdateView):
|
class ProfilePictureUpdateView(PictureUpdateView):
|
||||||
model = User
|
model = User
|
||||||
template_name = 'member/profile_picture_update.html'
|
template_name = 'member/profile_picture_update.html'
|
||||||
context_object_name = 'user_object'
|
context_object_name = 'user_object'
|
||||||
|
|
||||||
|
|
||||||
class ManageAuthTokens(LoginRequiredMixin, TemplateView):
|
class ManageAuthTokens(LoginRequiredMixin, TemplateView):
|
||||||
"""
|
"""
|
||||||
Affiche le jeton d'authentification, et permet de le regénérer
|
Affiche le jeton d'authentification, et permet de le regénérer
|
||||||
@ -331,7 +333,7 @@ class ClubCreateView(LoginRequiredMixin, CreateView):
|
|||||||
model = Club
|
model = Club
|
||||||
form_class = ClubForm
|
form_class = ClubForm
|
||||||
success_url = reverse_lazy('member:club_list')
|
success_url = reverse_lazy('member:club_list')
|
||||||
|
|
||||||
def form_valid(self, form):
|
def form_valid(self, form):
|
||||||
return super().form_valid(form)
|
return super().form_valid(form)
|
||||||
|
|
||||||
@ -366,7 +368,7 @@ class ClubDetailView(LoginRequiredMixin, DetailView):
|
|||||||
context['member_list'] = club_member
|
context['member_list'] = club_member
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
class ClubUpdateView(LoginRequiredMixin, UpdateView):
|
class ClubUpdateView(LoginRequiredMixin, UpdateView):
|
||||||
model = Club
|
model = Club
|
||||||
context_object_name = "club"
|
context_object_name = "club"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user