I tried to disable validation of a form or it's specific fields. but it seems that django-bootstrap5 forces validation for all bound forms:
|
def get_server_side_validation_classes(self): |
- I tried to remove 'is-valid' from my form object, but the validation css class is added before rendering.
- I can use
server_side_validation in django-bootstrap5 settings but it's global and I don't want to stop validating other forms.
I suggest adding a new parameter to template tags responsible for rendering forms and fields. E.g. {% bootstrap_form form server_side_validation=False %}.
I tried to disable validation of a form or it's specific fields. but it seems that
django-bootstrap5forces validation for all bound forms:django-bootstrap5/src/django_bootstrap5/renderers.py
Line 426 in fa61c34
server_side_validationin django-bootstrap5 settings but it's global and I don't want to stop validating other forms.I suggest adding a new parameter to template tags responsible for rendering forms and fields. E.g.
{% bootstrap_form form server_side_validation=False %}.