from django.db import models


class Menu(models.Model):

    day = models.CharField(max_length=10, blank=False, null=False)
    food = models.CharField(max_length=120, blank=False, null=False)
    meal = models.CharField(max_length=10, blank=False, null=False)
    option = models.IntegerField(null=False)
    week = models.IntegerField(null=False)

    class Meta:
        ordering = ('-week',)
        db_table = 'menu_table'

    def __unicode__(self):
        return u'%s %s %s' % (self.day, self.week, self.meal)


class Rating(models.Model):

    date = models.DateTimeField(auto_now_add=True)
    user_id = models.CharField(max_length=20)
    menu = models.ForeignKey(Menu, related_name='rating')
    rate = models.IntegerField(blank=False, null=False)
    comment = models.TextField(default='no comment', )

    class Meta:
        ordering = ('-date',)
        db_table = 'rating'

    def __unicode__(self):
        return u'%s' % (self.date)

@@ -140,57 +140,18 @@
 els.
-Char
+Text
 Field(
-max_length=120, blank=False, null=False
 )%0A  

convert food field to text