Re: Customising errors in a form according to user region

2010-09-03 Thread Sithembewena Lloyd Dube
Thanks Kenneth! On Fri, Sep 3, 2010 at 2:09 PM, Kenneth Gonsalves wrote: > On Fri, 2010-09-03 at 14:07 +0200, Sithembewena Lloyd Dube wrote: > > Basically, I wish to validate the name, surname and email fields when > > a user > > hits submit on the form. However, I need to show validation messag

Re: Customising errors in a form according to user region

2010-09-03 Thread Kenneth Gonsalves
On Fri, 2010-09-03 at 14:07 +0200, Sithembewena Lloyd Dube wrote: > Basically, I wish to validate the name, surname and email fields when > a user > hits submit on the form. However, I need to show validation messages > in the > appropriate language based on the user's selected region. How would I

Customising errors in a form according to user region

2010-09-03 Thread Sithembewena Lloyd Dube
Hi folks, I have a Django form defined as follows: class SubscriberForm(ModelForm): class Meta: model = Subscriber The Subscriber model is as follows: class Subscriber(models.Model): name =models.CharField(max_length=255) surname =