diff --git a/django-stubs/forms/models.pyi b/django-stubs/forms/models.pyi index 0c679ee36..307a259b2 100644 --- a/django-stubs/forms/models.pyi +++ b/django-stubs/forms/models.pyi @@ -50,6 +50,7 @@ def fields_for_model( field_classes: Mapping[str, type[Field]] | None = ..., *, apply_limit_choices_to: bool = ..., + form_declared_fields: _Fields | None = ..., ) -> dict[str, Any]: ... class ModelFormOptions(Generic[_M]): diff --git a/scripts/stubtest/allowlist_todo_django50.txt b/scripts/stubtest/allowlist_todo_django50.txt index 2818f0ace..ee3f99c5b 100644 --- a/scripts/stubtest/allowlist_todo_django50.txt +++ b/scripts/stubtest/allowlist_todo_django50.txt @@ -22,7 +22,6 @@ django.contrib.gis.db.models.Prefetch.get_current_querysets django.contrib.gis.db.models.Q.identity django.contrib.gis.db.models.When.allowed_default django.contrib.gis.forms.ClearableFileInput.checked -django.contrib.gis.forms.fields_for_model django.contrib.gis.geos.prototypes.io.DEFAULT_TRIM_VALUE django.contrib.gis.management django.contrib.gis.management.commands @@ -89,7 +88,5 @@ django.db.models.sql.query.Query.join django.db.models.sql.query.Query.resolve_lookup_value django.db.models.sql.query.Query.setup_joins django.forms.ClearableFileInput.checked -django.forms.fields_for_model -django.forms.models.fields_for_model django.forms.widgets.ClearableFileInput.checked django.template.autoreload