taskapp/models.py
changeset 165 8ea5bcf3bd01
parent 162 d378eff02f2e
child 166 ac72d641046e
equal deleted inserted replaced
164:bfe621e64a16 165:8ea5bcf3bd01
    90 
    90 
    91 class Task(models.Model):
    91 class Task(models.Model):
    92     
    92     
    93     prim_key = models.AutoField(primary_key = True)
    93     prim_key = models.AutoField(primary_key = True)
    94     id = models.CharField(max_length = 10, unique = True)
    94     id = models.CharField(max_length = 10, unique = True)
    95     title = models.CharField(max_length = 100, unique = True, verbose_name = u"Title", help_text = u"Keep it simple and below 100 chars.")
    95     title = models.CharField(max_length = 100, verbose_name = u"Title", help_text = u"Keep it simple and below 100 chars.")
    96     desc = models.TextField(verbose_name = u"Description")
    96     desc = models.TextField(verbose_name = u"Description")
    97     status = models.CharField(max_length = 2, choices = STATUS_CHOICES, default = "UP")
    97     status = models.CharField(max_length = 2, choices = STATUS_CHOICES, default = "UP")
    98     tags_field = TagField()
    98     tags_field = TagField()
    99     
    99     
   100     credits = models.PositiveSmallIntegerField()
   100     credits = models.PositiveSmallIntegerField()