File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
django-stubs/contrib/admin Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ class AdminSite:
61
61
) -> None : ...
62
62
def unregister (self , model_or_iterable : type [Model ] | Iterable [type [Model ]]) -> None : ...
63
63
def is_registered (self , model : type [Model ]) -> bool : ...
64
+ def get_model_admin (self , model : type [Model ]) -> ModelAdmin : ...
64
65
def add_action (self , action : _ActionCallback , name : str | None = ...) -> None : ...
65
66
def disable_action (self , name : str ) -> None : ...
66
67
def get_action (self , name : str ) -> _ActionCallback : ...
Original file line number Diff line number Diff line change 2
2
# Only discrepancies that appeared after Django 4.2 -> 5.0 update.
3
3
# Unsorted: there are real problems and things we can really ignore.
4
4
5
- django.contrib.admin.AdminSite.get_model_admin
6
5
django.contrib.admin.AllValuesFieldListFilter.get_facet_counts
7
6
django.contrib.admin.BooleanFieldListFilter.get_facet_counts
8
7
django.contrib.admin.ChoicesFieldListFilter.get_facet_counts
@@ -24,14 +23,12 @@ django.contrib.admin.filters.FacetsMixin
24
23
django.contrib.admin.filters.RelatedFieldListFilter.get_facet_counts
25
24
django.contrib.admin.filters.SimpleListFilter.get_facet_counts
26
25
django.contrib.admin.options.IS_FACETS_VAR
27
- django.contrib.admin.sites.AdminSite.get_model_admin
28
26
django.contrib.admin.utils.build_q_object_from_lookup_parameters
29
27
django.contrib.admin.utils.get_last_value_from_parameters
30
28
django.contrib.admin.views.main.ChangeList.get_queryset
31
29
django.contrib.contenttypes.fields.GenericForeignKey.get_content_type
32
30
django.contrib.contenttypes.fields.GenericForeignKey.get_prefetch_querysets
33
31
django.contrib.contenttypes.prefetch
34
- django.contrib.gis.admin.AdminSite.get_model_admin
35
32
django.contrib.gis.admin.OpenLayersWidget
36
33
django.contrib.gis.admin.options.spherical_mercator_srid
37
34
django.contrib.gis.admin.widgets
You can’t perform that action at this time.
0 commit comments