From b829002c61083756451c61c6979e9f3ffe2ae5a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sun, 16 Aug 2020 19:10:38 +0800 Subject: [PATCH] Revised the documentation in FormView in the Mia core application. --- mia_core/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mia_core/views.py b/mia_core/views.py index cfdc61c..fa50dd4 100644 --- a/mia_core/views.py +++ b/mia_core/views.py @@ -147,12 +147,12 @@ class FormView(View): setattr(obj, name, form[name].value()) def form_invalid(self, form: forms.Form) -> HttpResponseRedirect: - """Handles the action when the POST form is invalid""" + """Handles the action when the POST form is invalid.""" return stored_post.error_redirect( self.request, self.get_error_url(), form.data) def form_valid(self, form: forms.Form) -> HttpResponseRedirect: - """Handles the action when the POST form is valid""" + """Handles the action when the POST form is valid.""" obj = self.get_object() if obj is None: obj = self._model()