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._object = None
|
||||||
self._is_object_requested = False
|
self._is_object_requested = False
|
||||||
|
|
||||||
def dispatch(self, request: HttpRequest, *args, **kwargs):
|
def dispatch(self, request: HttpRequest, *args, **kwargs) -> HttpResponse:
|
||||||
"""The view to store an accounting transaction.
|
"""The view to store an accounting transaction."""
|
||||||
|
|
||||||
Returns:
|
|
||||||
The response.
|
|
||||||
"""
|
|
||||||
if self.request.method != "POST":
|
if self.request.method != "POST":
|
||||||
return self.do_get()
|
return self.do_get()
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user