Add a template for rendering legacy and Django fieldsets.

Review Request #8376 — Created Sept. 1, 2016 and submitted

Information

Djblets
release-0.8.x
df42780...

Reviewers

This is a combination of two backports, one for the new fieldsets
template, and one for adding support for Django fieldsets.

The new fieldsets template is available in
siteconfig/settings_fieldsets.html, unlike the new template which is in
forms/admin/form_fieldsets.html. The legacy location is used to
prevent breakages with users of Djblets, since it would require adding
the djblets.forms to INSTALLED_APPS.

The old template that this fieldset support came from only supported
our old custom version of fieldsets, rather than Django's version.
In Djblets 0.10, we added support for both. This change is backporting
that to the new fieldsets template.

Tested with old-style and new-style fieldsets.

Unit tests pass.

reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        djblets/util/templatetags/tests.py
        djblets/util/templatetags/djblets_forms.py
    
    Ignored Files:
        djblets/siteconfig/templates/siteconfig/settings_fieldsets.html
        djblets/siteconfig/templates/siteconfig/settings.html
    
    
    
    Tool: Pyflakes
    Processed Files:
        djblets/util/templatetags/tests.py
        djblets/util/templatetags/djblets_forms.py
    
    Ignored Files:
        djblets/siteconfig/templates/siteconfig/settings_fieldsets.html
        djblets/siteconfig/templates/siteconfig/settings.html
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-0.8.x (9885927)