Render ModelAdmin fieldsets outside admin sites
Review Request #9040 — Created June 27, 2017 and submitted — Latest diff uploaded
The
filer_fieldsets
utility function filters a list of fieldsets
from adjango.contrib.admin.ModelAdmin
so callers rendering forms
can control which fieldsets (such as internal state) are rendered.This change also refactors the core fieldset rendering of
form_fieldsets.html
into its own template so a single fieldset can
be rendered.
Tested with /r/9013/
Diff Revision 3
This is not the most recent revision of the diff. The latest diff is revision 6. See what's changed.
orig
1
2
3
4
5
6
djblets/forms/fieldsets.py |
---|
tests/static/ext/djblets.extensions.templatetags.tests.TestExtension/.version |
---|
tests/static/ext/djblets.extensions.tests.TestExtension/.version |
---|