Skip to content

Commit 16499a2

Browse files
authored
added unique annotation on model Field (#936)
1 parent 268ec3b commit 16499a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

django-stubs/db/models/fields/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ class Field(RegisterLookupMixin, Generic[_ST, _GT]):
143143
description: Union[str, _Getter[str]]
144144
blank: bool
145145
null: bool
146+
unique: bool
146147
editable: bool
147148
empty_strings_allowed: bool = ...
148149
choices: Optional[_ChoicesList] = ...

0 commit comments

Comments
 (0)