Commit 365244b7 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

Add a custom inlined form renderer that doesn't display title

parent e0d4e2917137
......@@ -250,9 +250,20 @@ class SimplifiedAutomaticEntityForm(autoform.AutomaticEntityForm):
class NoTitleEntityInlinedFormRenderer(formrenderers.EntityInlinedFormRenderer):
"""Custom inlined form renderer that doesn't display any title nor remove link.
This is intended to be subclassed with a custom selector.
__abstract__ = True
def render_title(self, w, form, values):
class ConcretNoTitleEntityInlinedFormRenderer(NoTitleEntityInlinedFormRenderer):
"""Concret implementation of `NoTitleEntityInlinedFormRenderer` with a custom regid.
Use this one by specifying the renderer id explicitly, for case where you can't easily specify a
__regid__ = 'notitle'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment