Allow Promise to be passed to ArrayField.verbose_name (#1168)

* Allow Promise to be passed to ArrayField.verbose_name

* Remove bytes and allow Promise for name as well
This commit is contained in:
Sigurd Ljødal
2022-09-27 16:53:28 +02:00
committed by GitHub
parent 93fa1d2e19
commit 199a7f2707

View File

@@ -27,8 +27,8 @@ class ArrayField(CheckFieldDefaultMixin, Field[_ST, _GT]):
base_field: Field,
size: Optional[int] = ...,
*,
verbose_name: Optional[Union[str, bytes]] = ...,
name: Optional[str] = ...,
verbose_name: Optional[_StrOrPromise] = ...,
name: Optional[_StrOrPromise] = ...,
primary_key: bool = ...,
max_length: Optional[int] = ...,
unique: bool = ...,