Fix Modelform auto_id to accept Boolean type. (#356)

This commit is contained in:
Onyeka Aghanenu
2020-04-13 17:04:18 +01:00
committed by GitHub
parent a801501151
commit 90ed7f332d

View File

@@ -21,7 +21,7 @@ class BaseForm:
is_bound: bool = ... is_bound: bool = ...
data: Dict[str, Any] = ... data: Dict[str, Any] = ...
files: MultiValueDict[str, uploadedfile.UploadedFile] = ... files: MultiValueDict[str, uploadedfile.UploadedFile] = ...
auto_id: str = ... auto_id: Union[bool, str] = ...
initial: Dict[str, Any] = ... initial: Dict[str, Any] = ...
error_class: Type[ErrorList] = ... error_class: Type[ErrorList] = ...
prefix: str = ... prefix: str = ...