From 9c872510ab7367c79a3bb6afc399a7f43d8d1862 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Fri, 24 Dec 2021 18:39:36 +0100 Subject: [PATCH] Rephrase view doc strings --- aleksis/core/views.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/aleksis/core/views.py b/aleksis/core/views.py index ecbfdbb4c..c3825b7b6 100644 --- a/aleksis/core/views.py +++ b/aleksis/core/views.py @@ -1397,10 +1397,10 @@ def server_error( class AccountRegisterView(SignupView): - """Rewrite account register view from upstream. + """Custom view to register a user account. - Rewrite dispatch function to check if signup is open or if the user has an verified - email address from an invitation, otherwise raise permission denied. + Rewrites dispatch function from allauth to check if signup is open or if the user + has a verified email address from an invitation; otherwise raises permission denied. """ form_class = AccountRegisterForm @@ -1418,7 +1418,7 @@ class AccountRegisterView(SignupView): class InvitePersonByID(View): - """Custom view to invite person by it.""" + """Custom view to invite person by their ID.""" success_url = reverse_lazy("persons") @@ -1446,12 +1446,11 @@ class InvitePersonByID(View): class LoginView(AllAuthLoginView): - """Override upstream loginview from django-allauth. - - Override view to check if email verification from django-invitations is mandatory. - If verification is mandatory, check if the user has a verified email address, if not, - re-sent verification. + """Custom login view covering e-mail verification if mandatory. + Overrides view from allauth to check if email verification from django-invitations is + mandatory. If it i, checks if the user has a verified email address, if not, + it re-sends verification. """ def done(self, form_list, **kwargs): -- GitLab