This commit is contained in:
Jeff Balogh 2010-06-23 14:20:46 -07:00
Родитель a8fd9914c7
Коммит b91f84a09b
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -102,7 +102,7 @@ class Addon(amo.models.ModelBase):
the_reason = TranslatedField()
the_future = TranslatedField()
average_rating = models.CharField(max_length=255, default=0,
average_rating = models.CharField(max_length=255, default=0, null=True,
db_column='averagerating')
bayesian_rating = models.FloatField(default=0, db_index=True,
db_column='bayesianrating')

Просмотреть файл

@ -45,7 +45,7 @@ class UserProfile(amo.models.ModelBase):
password = models.CharField(max_length=255, default='')
email = models.EmailField(unique=True)
averagerating = models.CharField(max_length=255, blank=True)
averagerating = models.CharField(max_length=255, blank=True, null=True)
bio = PurifiedField()
confirmationcode = models.CharField(max_length=255, default='',
blank=True)
@ -55,7 +55,7 @@ class UserProfile(amo.models.ModelBase):
emailhidden = models.BooleanField(default=False)
homepage = models.CharField(max_length=255, blank=True, default='')
location = models.CharField(max_length=255, blank=True, default='')
notes = models.TextField(blank=True)
notes = models.TextField(blank=True, null=True)
notifycompat = models.BooleanField(default=True)
notifyevents = models.BooleanField(default=True)
occupation = models.CharField(max_length=255, default='', blank=True)