Skip to content

Commit

Permalink
Add allow_unicode to SlugField (#224)
Browse files Browse the repository at this point in the history
### Description
- Add `allow_unicode` to SlugField (see: https://docs.djangoproject.com/en/5.0/ref/models/fields/#slugfield)
  • Loading branch information
joeriddles authored Jan 11, 2024
1 parent d64cb2a commit 6eeb38e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django-stubs/db/models/fields/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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__(
Expand All @@ -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]):
Expand Down

0 comments on commit 6eeb38e

Please sign in to comment.