Commits

Vladimir Korsun committed b429a17

Strip whitespaces is_widget argument.

Comments (0)

Files changed (1)

src/templatetags/field_attributes.py

+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(','))