1. Steve Losh
  2. django-goodfields

Commits

Steve Losh  committed 0f8431e

Pass the label directly into the templates.

  • Participants
  • Parent commits f4ff9ef
  • Branches default

Comments (0)

Files changed (1)

File goodfields/templatetags/goodfields.py

View file
     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):