From 90ed7f332def8922d4c72c046794a446b0e4cbc2 Mon Sep 17 00:00:00 2001 From: Onyeka Aghanenu Date: Mon, 13 Apr 2020 17:04:18 +0100 Subject: [PATCH] Fix Modelform `auto_id` to accept Boolean type. (#356) --- django-stubs/forms/forms.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django-stubs/forms/forms.pyi b/django-stubs/forms/forms.pyi index bf9fe45..4a1c71f 100644 --- a/django-stubs/forms/forms.pyi +++ b/django-stubs/forms/forms.pyi @@ -21,7 +21,7 @@ class BaseForm: is_bound: bool = ... data: Dict[str, Any] = ... files: MultiValueDict[str, uploadedfile.UploadedFile] = ... - auto_id: str = ... + auto_id: Union[bool, str] = ... initial: Dict[str, Any] = ... error_class: Type[ErrorList] = ... prefix: str = ...