Skip to content

Commit

Permalink
Fix return type of BaseModelAdmin.formfield_for_dbfield (#1934)
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos authored Feb 9, 2024
1 parent 6631555 commit 2cb9c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django-stubs/contrib/admin/options.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class BaseModelAdmin(Generic[_ModelT]):
admin_site: AdminSite
def __init__(self) -> None: ...
def check(self, **kwargs: Any) -> list[CheckMessage]: ...
def formfield_for_dbfield(self, db_field: Field, request: HttpRequest, **kwargs: Any) -> FormField | None: ...
def formfield_for_dbfield(self, db_field: Field, request: HttpRequest, **kwargs: Any) -> FormField: ...
def formfield_for_choice_field(self, db_field: Field, request: HttpRequest, **kwargs: Any) -> TypedChoiceField: ...
def get_field_queryset(self, db: str | None, db_field: RelatedField, request: HttpRequest) -> QuerySet | None: ...
def formfield_for_foreignkey(
Expand Down

0 comments on commit 2cb9c83

Please sign in to comment.