-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
field_class does nothing. #287
Comments
This can be fixed by adding the following to the add_widget_class_attrs() function within the renderers.py file: field_classes = [text_value(self.field_class)] Then append "+ field_classes" to the second to last line of the function: classes = before + classes + field_classes This solution is working for me. If there aren't any issues with it, I think it this should be merged into the official code. |
Here is a clean workaround until the bug is fixed: custom_renderer.py
settings.py
|
field_class
is documented as an option for thebootstrap_field
template tag, but it currently is not used, and does not apply the class to the<input>
.The text was updated successfully, but these errors were encountered: