Revised the documentation of the UserFormView and MyAccountFormView in the Mia core application.
This commit is contained in:
parent
a4d92a6a30
commit
190d9e51e0
@ -234,6 +234,7 @@ class UserView(DetailView):
|
|||||||
|
|
||||||
@method_decorator(login_required, name="dispatch")
|
@method_decorator(login_required, name="dispatch")
|
||||||
class UserFormView(FormView):
|
class UserFormView(FormView):
|
||||||
|
"""The form to create or update a user."""
|
||||||
model = User
|
model = User
|
||||||
form = UserForm
|
form = UserForm
|
||||||
not_modified_message = gettext_noop("This user account was not changed.")
|
not_modified_message = gettext_noop("This user account was not changed.")
|
||||||
@ -305,7 +306,7 @@ def user_delete(request: HttpRequest, user: User) -> HttpResponseRedirect:
|
|||||||
|
|
||||||
@method_decorator(login_required, name="dispatch")
|
@method_decorator(login_required, name="dispatch")
|
||||||
class MyAccountFormView(UserFormView):
|
class MyAccountFormView(UserFormView):
|
||||||
"""The form of the user's own account."""
|
"""The form to update the information of the currently logged-in user."""
|
||||||
not_modified_message = gettext_noop("Your user account was not changed.")
|
not_modified_message = gettext_noop("Your user account was not changed.")
|
||||||
success_message = gettext_noop("Your user account was saved successfully.")
|
success_message = gettext_noop("Your user account was saved successfully.")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user