From 832096478cf37b911688d061281348f74bf09e93 Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Thu, 21 Apr 2022 14:32:52 +0200 Subject: [PATCH] Refs #32339 -- Added base form renderer to docs. --- docs/ref/forms/renderers.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/ref/forms/renderers.txt b/docs/ref/forms/renderers.txt index 9047e2343f..809b151516 100644 --- a/docs/ref/forms/renderers.txt +++ b/docs/ref/forms/renderers.txt @@ -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