Skip to content

Commit

Permalink
Fix field_class does nothing #287
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezfauste committed Oct 22, 2023
1 parent f4fef7e commit a8ed129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/django_bootstrap5/renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def add_widget_class_attrs(self, widget=None):
size_prefix = None

before = []
classes = [widget.attrs.get("class", "")]
classes = [widget.attrs.get("class", ""), text_value(self.field_class)]

if ReadOnlyPasswordHashWidget is not None and isinstance(widget, ReadOnlyPasswordHashWidget):
before.append("form-control-static")
Expand Down

0 comments on commit a8ed129

Please sign in to comment.