From 51593d72e65c9f643064a13d4e284ba4201dca4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Thu, 13 Aug 2020 17:54:12 +0800 Subject: [PATCH] Revised the documentation of the dispatch method in FormView in the Mia core application. --- mia_core/views.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/mia_core/views.py b/mia_core/views.py index 80d8e49..a4a03fe 100644 --- a/mia_core/views.py +++ b/mia_core/views.py @@ -60,12 +60,8 @@ class FormView(View): self._object = None self._is_object_requested = False - def dispatch(self, request: HttpRequest, *args, **kwargs): - """The view to store an accounting transaction. - - Returns: - The response. - """ + def dispatch(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: + """The view to store an accounting transaction.""" if self.request.method != "POST": return self.do_get() else: