Refs #32339 -- Added base form renderer to docs.

This commit is contained in:
Carlton Gibson 2022-04-21 14:32:52 +02:00
parent 58b27e0dbb
commit 832096478c
1 changed files with 14 additions and 0 deletions

View File

@ -36,6 +36,20 @@ must implement a ``render(template_name, context, request=None)`` method. It
should return a rendered templates (as a string) or raise
:exc:`~django.template.TemplateDoesNotExist`.
.. class:: BaseRenderer
The base class for the built-in form renderers.
.. method:: get_template(template_name)
Subclasses must implement this method with the appropriate template
finding logic.
.. method:: render(template_name, context, request=None)
Renders the given template, or raises
:exc:`~django.template.TemplateDoesNotExist`.
.. _built-in-template-form-renderers:
Built-in-template form renderers