Skip to content

Commit

Permalink
Fix signature of ModelAdmin.construct_change_message
Browse files Browse the repository at this point in the history
The `form` argument was incorrectly typed.
  • Loading branch information
youtux authored Nov 15, 2024
1 parent ab4dcfa commit 524a140
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions django-stubs/contrib/admin/options.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ from django.contrib.admin.filters import FieldListFilter, ListFilter
from django.contrib.admin.models import LogEntry
from django.contrib.admin.sites import AdminSite
from django.contrib.admin.views.main import ChangeList
from django.contrib.auth.forms import AdminPasswordChangeForm
from django.contrib.contenttypes.models import ContentType
from django.core.checks.messages import CheckMessage
from django.core.paginator import Paginator
Expand Down Expand Up @@ -225,7 +224,7 @@ class ModelAdmin(BaseModelAdmin[_ModelT]):
def _get_edited_object_pks(self, request: HttpRequest, prefix: str) -> list[str]: ...
def _get_list_editable_queryset(self, request: HttpRequest, prefix: str) -> QuerySet[_ModelT]: ...
def construct_change_message(
self, request: HttpRequest, form: AdminPasswordChangeForm, formsets: Iterable[BaseFormSet], add: bool = ...
self, request: HttpRequest, form: forms.Form, formsets: Iterable[BaseFormSet], add: bool = ...
) -> list[dict[str, dict[str, list[str]]]]: ...
def message_user(
self,
Expand Down

0 comments on commit 524a140

Please sign in to comment.