Re: Error message customization

2009-11-25 Thread Benjamin Wolf
Hi, use a normal form and do it like this: shipping_character = forms.CharField(error_messages={'required': 'Your game character name'}, label='Charakter Name') dr.NO schrieb: > Hi, > > How can i display field name using verbose_name not just field name in > validation of ModelForm ? > > For egz

Error message customization

2009-11-25 Thread dr.NO
Hi, How can i display field name using verbose_name not just field name in validation of ModelForm ? For egz. shipping_character = models.CharField('Your game character name ',max_length=50) <-- field from model if it's empty validatior error is shipping_character - field is required an