Skip to content

Commit

Permalink
fix: Add get_inlines method to BaseModelAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
last-partizan committed Dec 26, 2023
1 parent b86960f commit bc75416
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions django-stubs/contrib/admin/options.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ class BaseModelAdmin(Generic[_ModelT]):
def get_sortable_by(
self, request: HttpRequest
) -> list[Callable[..., Any]] | list[str] | tuple[Any, ...]: ...
def get_inlines(
self, request: HttpRequest, obj: _ModelT | None
) -> list[type[InlineModelAdmin[Any]]]: ...
def lookup_allowed(self, lookup: str, value: str) -> bool: ...
def to_field_allowed(self, request: HttpRequest, to_field: str) -> bool: ...
def has_add_permission(self, request: HttpRequest) -> bool: ...
Expand Down

0 comments on commit bc75416

Please sign in to comment.