mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #32339 -- Allowed renderer to specify default form and formset templates.
Co-authored-by: David Smith <smithdc@gmail.com>
This commit is contained in:
@@ -15,6 +15,9 @@ def get_default_renderer():
|
||||
|
||||
|
||||
class BaseRenderer:
|
||||
form_template_name = "django/forms/default.html"
|
||||
formset_template_name = "django/forms/formsets/default.html"
|
||||
|
||||
def get_template(self, template_name):
|
||||
raise NotImplementedError("subclasses must implement get_template()")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user