Correct order for FileField __init__ args (#568)

This commit is contained in:
Daniel
2021-02-15 10:38:04 +00:00
committed by GitHub
parent 993dd816a4
commit eb195b61e9

View File

@@ -38,10 +38,10 @@ class FileField(Field):
upload_to: Union[str, Callable] = ... upload_to: Union[str, Callable] = ...
def __init__( def __init__(
self, self,
upload_to: Union[str, Callable, Path] = ...,
storage: Optional[Union[Storage, Callable[[], Storage]]] = ...,
verbose_name: Optional[Union[str, bytes]] = ..., verbose_name: Optional[Union[str, bytes]] = ...,
name: Optional[str] = ..., name: Optional[str] = ...,
upload_to: Union[str, Callable, Path] = ...,
storage: Optional[Union[Storage, Callable[[], Storage]]] = ...,
max_length: Optional[int] = ..., max_length: Optional[int] = ...,
unique: bool = ..., unique: bool = ...,
blank: bool = ..., blank: bool = ...,