Revised the documentation of the dispatch method in FormView in the Mia core application.

This commit is contained in:
依瑪貓 2020-08-13 17:54:12 +08:00
parent a61f705dda
commit 51593d72e6

View File

@ -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: