djangoformsdjango-forms

Adding a label_suffix to ModelForm


How do I change the label_suffix on a ModelForm?

I want the model form to remove ":" from all labels.


Solution

  • When the form is instantiated, you can pass label_suffix into it as follows:

    list_form = ListForm(label_suffix="")