Issue
Below source code is from django/forms/forms.py
class BaseForm(RenderableFormMixin):
def _html_output(self, normal_row, error_row, row_ender, help_text_html, errors_on_separate_row):
"Output HTML. Used by as_table(), as_ul(), as_p()."
How is this private method _html_output()
used / invoked by as_table(), as_ul(), as_p()
please ? I did not find out from the source code.
Solution
The method is no longer used
https://docs.djangoproject.com/en/4.0/releases/4.0/#id2
Since form rendering now uses the template engine, the undocumented BaseForm._html_output() helper method is deprecated
Answered By - Iain Shelvington
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.