Replies: 2 comments 4 replies
-
Isn't that documented? Apparently not good enough. You can add a renderer other than the default for sub-collections. class CompanyCollection(FormCollection):
default_renderer = FormRenderer()
form = CompanyForm()
teams = TeamCollection(renderer=...) or add it to the class TeamCollection(FormCollection):
min_siblings = 0
team = TeamForm()
renderer = FormRenderer(
form_css_classes='row',
field_css_classes='col my-1',
label_css_classes='d-none'
) |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hmm, thought this was working already. Apparently no unit tests yet. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any way to use multiple 'default_renderer's in a FormCollection please?
In EditFormCollection(view) I would like to render the:
Example:
But default_renderer works only for the parent CompanyCollection. The TeamCollection's default_renderer is ignored.
Beta Was this translation helpful? Give feedback.
All reactions