remove null=True fron CharFields

This commit is contained in:
slav0nic 2009-11-15 00:01:26 +02:00
parent 598ef0b380
commit 183bf543ca
2 changed files with 9 additions and 8 deletions

View file

@ -13,6 +13,7 @@ djapian_db
*~
*.kpf
*.autosave
*.wpr
static/forum/avatars
static/forum/attachments
secret.txt

View file

@ -265,14 +265,14 @@ class Reputation(models.Model):
class Profile(models.Model):
user = AutoOneToOneField(User, related_name='forum_profile', verbose_name=_('User'))
status = models.CharField(_('Status'), max_length=30, blank=True, null=True)
site = models.URLField(_('Site'), verify_exists=False, blank=True, null=True)
jabber = models.CharField(_('Jabber'), max_length=80, blank=True, null=True)
icq = models.CharField(_('ICQ'), max_length=12, blank=True, null=True)
msn = models.CharField(_('MSN'), max_length=80, blank=True, null=True)
aim = models.CharField(_('AIM'), max_length=80, blank=True, null=True)
yahoo = models.CharField(_('Yahoo'), max_length=80, blank=True, null=True)
location = models.CharField(_('Location'), max_length=30, blank=True, null=True)
status = models.CharField(_('Status'), max_length=30, blank=True)
site = models.URLField(_('Site'), verify_exists=False, blank=True)
jabber = models.CharField(_('Jabber'), max_length=80, blank=True)
icq = models.CharField(_('ICQ'), max_length=12, blank=True)
msn = models.CharField(_('MSN'), max_length=80, blank=True)
aim = models.CharField(_('AIM'), max_length=80, blank=True)
yahoo = models.CharField(_('Yahoo'), max_length=80, blank=True)
location = models.CharField(_('Location'), max_length=30, blank=True)
signature = models.TextField(_('Signature'), blank=True, default='', max_length=forum_settings.SIGNATURE_MAX_LENGTH)
time_zone = models.FloatField(_('Time zone'), choices=TZ_CHOICES, default=float(forum_settings.DEFAULT_TIME_ZONE))
language = models.CharField(_('Language'), max_length=3, default='', choices=settings.LANGUAGES)