March 2020
Intermediate to advanced
608 pages
17h 17m
English
As a result, we get the following form:

Contrary to the default behavior of Django, which hardcodes field generation in Python code, the django-crispy-forms app uses templates to render the fields. You can browse them under crispy_forms/templates/bootstrap4 and copy some of them to an analogous path in your project's template directory to overwrite them when necessary.
In our idea creation and editing form, we pass a custom template for the categories field that will add the .level-* CSS classes to the <label> tag, wrapping the checkboxes. One problem with the normal CheckboxSelectMultiple widget is that when rendered, it only ...
Read now
Unlock full access