Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type for BoundField.__html__() #1998

Closed
pelme opened this issue Mar 11, 2024 · 0 comments · Fixed by #1999
Closed

Add type for BoundField.__html__() #1998

pelme opened this issue Mar 11, 2024 · 0 comments · Fixed by #1999
Labels
bug Something isn't working

Comments

@pelme
Copy link
Contributor

pelme commented Mar 11, 2024

Bug report

What's wrong

BoundField can be rendered as html by calling __html__(), via RenderableFieldMixin:
https://github.com/django/django/blob/3592e9fcb13b1353cfa78f03c2574fe9282ce5ac/django/forms/utils.py#L81

__html__() is currently not defined on the type definition for BoundField.

How is that should be

__html__() should be defined (returning SafeString)

@pelme pelme added the bug Something isn't working label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

1 participant