mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-16 08:47:49 +08:00
added unique annotation on model Field (#936)
This commit is contained in:
committed by
GitHub
parent
268ec3bcd5
commit
16499a22ab
@@ -143,6 +143,7 @@ class Field(RegisterLookupMixin, Generic[_ST, _GT]):
|
|||||||
description: Union[str, _Getter[str]]
|
description: Union[str, _Getter[str]]
|
||||||
blank: bool
|
blank: bool
|
||||||
null: bool
|
null: bool
|
||||||
|
unique: bool
|
||||||
editable: bool
|
editable: bool
|
||||||
empty_strings_allowed: bool = ...
|
empty_strings_allowed: bool = ...
|
||||||
choices: Optional[_ChoicesList] = ...
|
choices: Optional[_ChoicesList] = ...
|
||||||
|
|||||||
Reference in New Issue
Block a user