django form add field 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}),
}