and convert it again to the dictionary, if attrs is false, leave it alone, substitute the result for attrs. if self.field.required is true and self.form has an attribute 'required_css_class',
if self . field . required and hasattr ( self . form , 'required_css_class' ) :