1. Vladimir Korsun
  2. django-field-attributes

Commits

Vladimir Korsun  committed b429a17

Strip whitespaces is_widget argument.

  • Participants
  • Parent commits aaf9a55
  • Branches default

Comments (0)

Files changed (1)

File src/templatetags/field_attributes.py

View file
+from string import strip
 from django.template import Library
 
 register = Library()
     """
     Check widget class name
     """
-    return value.field.widget.__class__.__name__ in arg.split(',')
+    return value.field.widget.__class__.__name__ in map(strip, arg.split(','))