From 16499a22ab2e0cdf8ed076f5ab60ed5ab2bbccef Mon Sep 17 00:00:00 2001 From: Guillaume Andreu Sabater Date: Wed, 27 Apr 2022 21:57:58 +0200 Subject: [PATCH] added unique annotation on model Field (#936) --- django-stubs/db/models/fields/__init__.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/django-stubs/db/models/fields/__init__.pyi b/django-stubs/db/models/fields/__init__.pyi index ba4f908..299fe0c 100644 --- a/django-stubs/db/models/fields/__init__.pyi +++ b/django-stubs/db/models/fields/__init__.pyi @@ -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] = ...