Commits

Vladimir Korsun committed c38ff0a

Fix for required attribute.

  • Participants
  • Parent commits 386b6c5

Comments (0)

Files changed (1)

File src/templatetags/field_attributes.py

     """
     Substitute field widget attributes
     """
+
+    if kwargs.pop('required') in [True, 'True', 'required']:
+        kwargs['required'] = 'required'
+    
     field.field.widget.attrs.update(kwargs)
     return {'field': field}