Задать вопрос

Тел: +7 965 3737 888

435

Просмотров

0

Ответов

change a widget attribute in ModelForm without define the field

I will change a model form widget attribute without define the complete field. Because many "meta" information are defined in the model (e.g. the help_text) and i don't want to repeat this.

I found a solution: Add/change the widget attribute in the init, see example code.

Вопрос полезен? Да0/Нет0
file_3945.py(362.0б)
None