Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update django to 5.1.1 #2360

Merged
merged 2 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions django-stubs/contrib/auth/forms.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from collections.abc import Iterable
from logging import Logger
from typing import Any, TypeVar

from django import forms
Expand All @@ -12,6 +13,8 @@ from django.forms.widgets import Widget
from django.http.request import HttpRequest
from typing_extensions import TypeAlias

logger: Logger

UserModel: TypeAlias = type[_UserModel]
_User = TypeVar("_User", bound=AbstractBaseUser)

Expand Down
4 changes: 3 additions & 1 deletion django-stubs/db/models/expressions.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ class Ref(Expression):
def __init__(self, refs: str, source: Expression) -> None: ...

class ExpressionList(Func):
def __init__(self, *expressions: BaseExpression | Combinable, **extra: Any) -> None: ...
def __init__(
self, *expressions: BaseExpression | Combinable, output_field: Field | None = None, **extra: Any
) -> None: ...

class OrderByList(Func): ...

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pytest-shard==0.1.2
# Django deps:
psycopg2-binary
Django==4.2.13; python_version < '3.10'
Django==5.1; python_version >= '3.10'
Django==5.1.1; python_version >= '3.10'
-e ./ext
-e .[redis,compatible-mypy,oracle]

Expand Down
4 changes: 2 additions & 2 deletions scripts/stubtest/allowlist_todo_django51.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ django.contrib.auth.forms.AdminPasswordChangeForm.usable_password_help_text
django.contrib.auth.forms.BaseUserCreationForm.clean_password2
django.contrib.auth.forms.SetPasswordForm.clean_new_password2
django.contrib.auth.forms.SetPasswordMixin
django.contrib.auth.forms.SetUnusablePasswordMixin
django.contrib.auth.forms.AdminUserCreationForm
django.contrib.auth.hashers.SHA1PasswordHasher
django.contrib.auth.hashers.UnsaltedMD5PasswordHasher
django.contrib.auth.hashers.UnsaltedSHA1PasswordHasher
Expand Down Expand Up @@ -133,8 +135,6 @@ django.db.backends.oracle.features.DatabaseFeatures.supports_comparing_boolean_e
django.db.backends.oracle.features.DatabaseFeatures.supports_frame_exclusion
django.db.backends.postgresql.base.DatabaseWrapper.close_pool
django.db.backends.postgresql.base.DatabaseWrapper.pool
django.db.backends.postgresql.base.ensure_role
django.db.backends.postgresql.base.ensure_timezone
django.db.backends.postgresql.features.DatabaseFeatures.django_test_skips
django.db.backends.postgresql.features.DatabaseFeatures.is_postgresql_16
django.db.backends.postgresql.features.DatabaseFeatures.supports_frame_exclusion
Expand Down
Loading