How to prevent Django from auto-capitalizing of the verbose_name in models? E.g:
class TestModel(models.Model):
enb_id = models.IntegerField(null=True, v
I believe that the "most correct" answer in modern Django (v1.11+) is to do the following:
class TestModel(models.Model):
field_name = models.CharField(verbose_name=_('field name'), blank=True)
class TestModelForm(forms.ModelForm):
class Meta:
model = TestModel
fields = '__all__'
labels = {
'field_name': _('field name')
}
This doesn't require you to define a custom model field just to change the form, use custom CSS, or hack around browser behavior. It's laser-targeted to only change the string that gets sent to the form renderer for that one field, with absolutely no other potential knock-on effects.