Commits

Anonymous committed 2d451d2

profile model fix

Comments (0)

Files changed (1)

vk_iframe/models.py

 from annoying.fields import AutoOneToOneField
 
 class Country(models.Model):
-    title = CharField(u'Название', max_length=100, null=True, blank=True)
+    title = CharField(u'Название', max_length=255, null=True, blank=True)
 
     def __unicode__(self):
         return self.title or u'[%s]' % self.pk
 
 
 class City(models.Model):
-    title = CharField(u'Название', max_length=100, null=True, blank=True)
+    title = CharField(u'Название', max_length=255, null=True, blank=True)
     country = ForeignKey(Country, null=True, blank=True)
 
     def __unicode__(self):
         (0, u'Без указания пола',),
     )
     user =          AutoOneToOneField(User, primary_key=True, related_name = 'profile')
-    nickname =      CharField(u'nick', max_length=100, blank=True, null=True)
-    domain =        CharField(u'Адрес в url', max_length=50, blank=True, null=True)
+    nickname =      CharField(u'nick', max_length=255, blank=True, null=True)
+    domain =        CharField(u'Адрес в url', max_length=255, blank=True, null=True)
     sex =           IntegerField(u'Пол', blank=True, null=True, choices = GENDER_CHOICES)
     bdate =         CharField(u'Дата рождения', max_length=10, blank=True, null=True)
 
 
     rate =          IntegerField(u'Рейтинг', blank=True, null=True)
     has_mobile =    NullBooleanField(u'Есть сотовый', blank=True, null=True)
-    home_phone =    CharField(u'Домашний телефон', max_length=30, blank=True, null=True)
-    mobile_phone =  CharField(u'Сотовый телефон', max_length=30, blank=True, null=True)
+    home_phone =    CharField(u'Домашний телефон', max_length=255, blank=True, null=True)
+    mobile_phone =  CharField(u'Сотовый телефон', max_length=255, blank=True, null=True)
 
     university =    IntegerField(u'Университет (id)', blank=True, null=True)
-    university_name = CharField(u'Университет', max_length=50, blank=True, null=True)
+    university_name = CharField(u'Университет', max_length=255, blank=True, null=True)
     faculty =       IntegerField(u'Факультет (id)', blank=True, null=True)
-    faculty_name =  CharField(u'Факультет', max_length=50, blank=True, null=True)
-    graduation =    CharField(u'Год выпуска', max_length=4, blank=True, null=True)
+    faculty_name =  CharField(u'Факультет', max_length=255, blank=True, null=True)
+    graduation =    CharField(u'Год выпуска', max_length=255, blank=True, null=True)
 
     class Meta:
         abstract = True