Adding label_suffix to ModelForm

How to change label_suffixto ModelForm?

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

+4
source share
1 answer

When you create an instance of the form, you can pass it label_suffixinto it as follows:

list_form = ListForm(label_suffix="")
+4
source

Source: https://habr.com/ru/post/1542776/


All Articles