Replaced the type hint of the object of FormView from Optional[BaseModel] to Optional[Model] in the Mia core application.
This commit is contained in:
parent
71989f424c
commit
a6fc865b3e
@ -32,7 +32,6 @@ from django.views.generic import DeleteView as CoreDeleteView
|
|||||||
from django.views.generic.base import View
|
from django.views.generic.base import View
|
||||||
|
|
||||||
from . import stored_post, utils
|
from . import stored_post, utils
|
||||||
from .models import BaseModel
|
|
||||||
from .utils import UrlBuilder
|
from .utils import UrlBuilder
|
||||||
|
|
||||||
|
|
||||||
@ -49,7 +48,7 @@ class FormView(View):
|
|||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
self.object: Optional[BaseModel] = None
|
self.object: Optional[Model] = None
|
||||||
|
|
||||||
def dispatch(self, request: HttpRequest, *args, **kwargs) -> HttpResponse:
|
def dispatch(self, request: HttpRequest, *args, **kwargs) -> HttpResponse:
|
||||||
"""The view to store an accounting transaction."""
|
"""The view to store an accounting transaction."""
|
||||||
|
Loading…
Reference in New Issue
Block a user