Don't render form field labels when the label is an empty string.

Review Request #9923 — Created May 10, 2018 and submitted

chipx86
Djblets
release-1.0.x
3e76015...
djblets

Django forms allow for the disabling of <label> tags if the label is
an empty string, but our counterpart ({% label_tag %}) didn't support
this. We now look to see if a field's label is an empty string and, if
so, we simply don't render a label for the field.

Unit tests passed.

Tested along with the upcoming consent change.

david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-1.0.x (5d089e3)
Loading...