Wrap form field contents in a <div>

Review Request #9006 — Created June 9, 2017 and submitted — Latest diff uploaded

Information

Djblets
release-0.10.x

Reviewers

This change makes form fields rendered by
djblets_forms/admin/form_field.html and Django's own
admin/includes/fieldset.html render closer together by wrapping the
contents of the field inside a <div>. This allows us to render
admin-styled forms (e.g., .aligned.module fieldsets) without being too
hacky.

  • Tested this with an upcoming patch for Review Board.
  • Did not notice changes in fields that are rendered with this template.