Revised the documentation of the dispatch method in FormView in the Mia core application.
This commit is contained in:
parent
a61f705dda
commit
51593d72e6
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user