From 6eeb38ea2b0ca37487c61c5830dfe8202d9fdd80 Mon Sep 17 00:00:00 2001 From: Joseph Riddle Date: Thu, 11 Jan 2024 06:33:54 -0800 Subject: [PATCH] Add allow_unicode to SlugField (#224) ### Description - Add `allow_unicode` to SlugField (see: https://docs.djangoproject.com/en/5.0/ref/models/fields/#slugfield) --- django-stubs/db/models/fields/__init__.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django-stubs/db/models/fields/__init__.pyi b/django-stubs/db/models/fields/__init__.pyi index 6f7f7bd7f..5f334e35b 100644 --- a/django-stubs/db/models/fields/__init__.pyi +++ b/django-stubs/db/models/fields/__init__.pyi @@ -718,6 +718,7 @@ class SlugField(CharField[_C]): db_tablespace: str | None = ..., validators: Iterable[_ValidatorCallable] = ..., error_messages: _ErrorMessagesToOverride | None = ..., + allow_unicode: bool = ... ) -> SlugField[str]: ... @overload def __new__( @@ -744,6 +745,7 @@ class SlugField(CharField[_C]): db_tablespace: str | None = ..., validators: Iterable[_ValidatorCallable] = ..., error_messages: _ErrorMessagesToOverride | None = ..., + allow_unicode: bool = ... ) -> SlugField[str | None]: ... class EmailField(CharField[_C]):