1👍
verbose_name
should work with Django 1.4 according to the 1.4 docs.
I think because you’re overriding the field in the form it’s not using the verbose name for the label. What you could do is set the label on the ModelChoiceField.
class ProductVariantForm(forms.ModelForm):
product = forms.ModelChoiceField(label="Test Product", queryset=TestProduct.objects.order_by("product__article_code"))
test_software = forms.ModelChoiceField(queryset=TestSoftware.objects.order_by("name"))
class Meta:
model = ProductVariant
I’m not quite sure how to use the model’s verbose name on the field though, so you might have to define it twice.
Source:stackexchange.com