Commits

Steve Losh committed 0f8431e

Pass the label directly into the templates.

  • Participants
  • Parent commits f4ff9ef

Comments (0)

Files changed (1)

goodfields/templatetags/goodfields.py

     def __init__(self, field, field_type, label=None, validation=None):
         self.field = template.Variable(field)
         self.field_type = field_type.strip('"')
-        self.label = label.strip('"') if label else None
+        self.label = label.strip('"') if label else field.label
         self.validation = validation
     
     def render(self, context):