Skip to content

Commit

Permalink
Add AdminSite.get_log_entries (#1963)
Browse files Browse the repository at this point in the history
Co-authored-by: Nikita Sobolev <[email protected]>
  • Loading branch information
q0w and sobolevn authored Feb 24, 2024
1 parent 0b46ef2 commit 8a30376
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions django-stubs/contrib/admin/sites.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ from collections.abc import Callable, Iterable
from typing import Any, TypeVar

from django.apps.config import AppConfig
from django.contrib.admin.models import LogEntry
from django.contrib.admin.options import ModelAdmin
from django.contrib.auth.forms import AuthenticationForm
from django.core.checks import CheckMessage
Expand Down Expand Up @@ -86,6 +87,7 @@ class AdminSite:
) -> TemplateResponse: ...
def autocomplete_view(self, request: HttpRequest) -> HttpResponse: ...
def catch_all_view(self, request: HttpRequest, url: str) -> HttpResponse: ...
def get_log_entries(self, request: HttpRequest) -> QuerySet[LogEntry]: ...

class DefaultAdminSite(LazyObject): ...

Expand Down
3 changes: 0 additions & 3 deletions scripts/stubtest/allowlist_todo_django50.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ django.conf.global_settings.CSRF_COOKIE_MASKED
django.conf.global_settings.FORMS_URLFIELD_ASSUME_HTTPS
django.conf.global_settings.USE_DEPRECATED_PYTZ
django.conf.global_settings.USE_L10N
django.contrib.admin.AdminSite.get_log_entries
django.contrib.admin.AdminSite.get_model_admin
django.contrib.admin.AllValuesFieldListFilter.get_facet_counts
django.contrib.admin.BooleanFieldListFilter.get_facet_counts
Expand All @@ -32,7 +31,6 @@ django.contrib.admin.filters.SimpleListFilter.get_facet_counts
django.contrib.admin.helpers.checkbox
django.contrib.admin.options.BaseModelAdmin.lookup_allowed
django.contrib.admin.options.IS_FACETS_VAR
django.contrib.admin.sites.AdminSite.get_log_entries
django.contrib.admin.sites.AdminSite.get_model_admin
django.contrib.admin.utils.build_q_object_from_lookup_parameters
django.contrib.admin.utils.get_last_value_from_parameters
Expand All @@ -43,7 +41,6 @@ django.contrib.auth.hashers.verify_password
django.contrib.contenttypes.fields.GenericForeignKey.get_content_type
django.contrib.contenttypes.fields.GenericForeignKey.get_prefetch_querysets
django.contrib.contenttypes.prefetch
django.contrib.gis.admin.AdminSite.get_log_entries
django.contrib.gis.admin.AdminSite.get_model_admin
django.contrib.gis.admin.OpenLayersWidget
django.contrib.gis.admin.options.spherical_mercator_srid
Expand Down

0 comments on commit 8a30376

Please sign in to comment.