Skip to content

Commit

Permalink
5.0: Update django.forms.renderers (#2119)
Browse files Browse the repository at this point in the history
* 5.0: Update django.forms.renderers

* Update allowlist.txt
  • Loading branch information
JaeHyuckSa authored May 3, 2024
1 parent 9b6c3b3 commit c3a7e54
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions django-stubs/forms/renderers.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def get_default_renderer() -> BaseRenderer: ...
class BaseRenderer:
form_template_name: str
formset_template_name: str
field_template_name: str
def get_template(self, template_name: str) -> Any: ...
def render(self, template_name: str, context: dict[str, Any], request: HttpRequest | None = ...) -> str: ...

Expand Down
1 change: 1 addition & 0 deletions scripts/stubtest/allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ django.forms.formsets.BaseFormSet.forms
django.forms.formsets.BaseFormSet.management_form
django.forms.renderers.EngineMixin.engine
django.forms.renderers.Jinja2.backend
django.forms.renderers.Jinja2DivFormRenderer.__init__
django.http.HttpRequest.accepted_types
django.http.HttpRequest.headers
django.http.request.HttpRequest.accepted_types
Expand Down
2 changes: 0 additions & 2 deletions scripts/stubtest/allowlist_todo_django50.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,5 @@ django.forms.ClearableFileInput.checked
django.forms.fields_for_model
django.forms.forms.BaseForm._html_output
django.forms.models.fields_for_model
django.forms.renderers.BaseRenderer.field_template_name
django.forms.renderers.Jinja2DivFormRenderer.__init__
django.forms.widgets.ClearableFileInput.checked
django.template.autoreload

0 comments on commit c3a7e54

Please sign in to comment.