attrs
is not an argument to the field, it's an argument to the widget.
file = forms.FileField(widget=forms.FileInput(attrs={'class': 'rounded_list'}))
Note that some browsers don't allow styling of the file input.
attrs
is not an argument to the field, it's an argument to the widget.
file = forms.FileField(widget=forms.FileInput(attrs={'class': 'rounded_list'}))
Note that some browsers don't allow styling of the file input.
For further actions, you may consider blocking this person and/or reporting abuse
Anthony Lagrede -
Prashanth -
John Jung -
Avinashd -
Top comments (0)