Support HTML in consent requirement descriptions
Review Request #9965 — Created May 22, 2018 and updated — Latest diff uploaded
Instead of juggling
mark_safevsmark_safe_lazyandugettextvs
ugettext_lazyand string interpolation, we now have a flag on the
BaseConsentRequirementthat indicates whether or not the description
fields are HTML (in which case they will be rendered as-is and marked
safe) or text (in which case they will be wrapped with<p>tags). This
allows the rendering code (which is handled by a new
render_{field}_descriptionmethod that can be overridden in a pinch to
specialize its behaviour) instead of naively by the template.
Used this with https://reviews.reviewboard.org/r/9967/