Looping Through Fieldsets in a Django-Formset Collection Template #212
Replies: 1 comment 1 reply
-
You can have a look at this template. There I iterate over all collections. You can override this template and do whatever you like. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I have this collection:
class PerimetreCollection(FormCollection): legend = "Monitoring and Evaluation Form for Project Management Plans" perimetre = PerimetreForm() integration = IntegrationForm()
Is it possible to loop through each fieldset in the template like this?
`
{{ form_collection.integration }}
{{ form_collection.perimetre }}
Beta Was this translation helpful? Give feedback.
All reactions