misc: remove alternate forms root directory (#72821)
This commit is contained in:
parent
6ee40f42cb
commit
af815ab7e5
|
@ -29,15 +29,3 @@ class AlternateFormPage(OldFormPage):
|
|||
wcs.forms.root.FormPage = AlternateFormPage
|
||||
wcs.forms.root.PublicFormStatusPage.form_page_class = AlternateFormPage
|
||||
wcs.forms.preview.PreviewFormPage.__bases__ = (AlternateFormPage,)
|
||||
|
||||
|
||||
OldFormsRootDirectory = wcs.forms.root.RootDirectory
|
||||
|
||||
|
||||
class AlternateFormsRootDirectory(OldFormsRootDirectory):
|
||||
def form_list(self, *args, **kwargs):
|
||||
form_list = OldFormsRootDirectory.form_list(self, *args, **kwargs)
|
||||
return htmltext(str(form_list).replace('h2>', 'h3>'))
|
||||
|
||||
|
||||
wcs.forms.root.RootDirectory = AlternateFormsRootDirectory
|
||||
|
|
Reference in New Issue