Changes between Version 1 and Version 2 of Ticket #9104, comment 6


Ignore:
Timestamp:
Nov 21, 2013, 1:34:14 PM (11 years ago)
Author:
nickname123

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9104, comment 6

    v1 v2  
    1717                pass
    1818            else:
    19                 self.fields[key].widget.attrs["required"] = not mfield.blank
     19                if not mfield.blank:
     20                    self.fields[key].widget.attrs["required"] = "required"
    2021}}}
    2122
Back to Top