added unique annotation on model Field (#936)

This commit is contained in:
Guillaume Andreu Sabater
2022-04-27 21:57:58 +02:00
committed by GitHub
parent 268ec3bcd5
commit 16499a22ab

View File

@@ -143,6 +143,7 @@ class Field(RegisterLookupMixin, Generic[_ST, _GT]):
description: Union[str, _Getter[str]]
blank: bool
null: bool
unique: bool
editable: bool
empty_strings_allowed: bool = ...
choices: Optional[_ChoicesList] = ...