how to define html attributes for model fields in django forms code example
Example 1: django ModelChoiceField value not id
articles = ModelChoiceField(queryset=Articles.objects.all(),
to_field_name='slug')
Example 2: django form field add attrs
widgets = {
'field_name': django_forms.NumberInput(attrs={'step': 0.01}),
}