From c74ae2b219101eb665d90796d74e09c37449da1f Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 26 Jul 2012 01:11:26 +0530 Subject: [PATCH] models validate --- itf/itfprofiles/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/itf/itfprofiles/models.py b/itf/itfprofiles/models.py index 6047ee6..40c556d 100644 --- a/itf/itfprofiles/models.py +++ b/itf/itfprofiles/models.py @@ -70,7 +70,7 @@ OCCUPATION_TYPES = ( class Occupation(models.Model): name = models.CharField(max_length=255) - occupation_type = models.CharField(choices=OCCUPATION_TYPES) + occupation_type = models.CharField(choices=OCCUPATION_TYPES, max_length=64) extra_text = models.BooleanField(default=False) def __unicode__(self): @@ -128,7 +128,7 @@ STATE_CHOICES= ( class City(models.Model): name = models.CharField(max_length=255) - state = models.CharField(choices = STATE_CHOICES) + state = models.CharField(choices = STATE_CHOICES, max_length=255) from django.contrib.localflavor.in_.forms import INZipCodeField @@ -137,7 +137,7 @@ class Location(models.Model): lon= models.FloatField(blank=True, null=True) city = models.ForeignKey(City) pincode= INZipCodeField() - address= models.TextFie + address= models.TextField() class PersonOccupation(models.Model):