#222 fix to small db collumns for assignment.status and config.value

db-reset necessary
This commit is contained in:
Oskar Hahn 2012-06-23 13:17:50 +02:00
parent 4edc4f503c
commit 442a24ccd8
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class Assignment(models.Model, SlideMixin):
polldescription = models.CharField(max_length=100, null=True, blank=True, verbose_name = _("Short description (for ballot paper)"))
profile = models.ManyToManyField(Profile, null=True, blank=True)
elected = models.ManyToManyField(Profile, null=True, blank=True, related_name='elected_set')
status = models.CharField(max_length=1, choices=STATUS, default='sea')
status = models.CharField(max_length=3, choices=STATUS, default='sea')
def set_status(self, status):
error = True

View File

@ -23,7 +23,7 @@ import settings
class ConfigStore(models.Model):
key = models.CharField(max_length=100, primary_key=True)
value = models.CharField(max_length=100)
value = models.TextField()
def __unicode__(self):
return self.key