django-widget-tweaks is a Django app that tweaks the form field rendering in templates, not in python-level form definitions. Altering CSS classes and HTML attributes is supported.
pip install django-widget-tweaks
Then add 'widget_tweaks' to INSTALLED_APPS.
What's New in This Release: [ read full changelog ]
· support for template variables is added to render_field tag;
· new field_type and widget_type filters.