taskapp/models.py
changeset 49 52b774df918e
parent 48 8670846be981
child 51 89463859712c
equal deleted inserted replaced
48:8670846be981 49:52b774df918e
    52     
    52     
    53     title = models.CharField(max_length = 100, unique = True, verbose_name = u"Title", help_text = u"Keep it simple and below 100 chars.")
    53     title = models.CharField(max_length = 100, unique = True, verbose_name = u"Title", help_text = u"Keep it simple and below 100 chars.")
    54     desc = models.TextField(verbose_name = u"Description")
    54     desc = models.TextField(verbose_name = u"Description")
    55     status = models.CharField(max_length = 2, choices = STATUS_CHOICES, default = "UP")
    55     status = models.CharField(max_length = 2, choices = STATUS_CHOICES, default = "UP")
    56 #    tags = models.CharField(max_length = 200, blank = True)
    56 #    tags = models.CharField(max_length = 200, blank = True)
    57     tags = TagField()
    57     tags_field = TagField()
    58     
    58     
    59     subs = models.ManyToManyField('self', blank = True, related_name = "%(class)s_parents")
    59     subs = models.ManyToManyField('self', blank = True, related_name = "%(class)s_parents")
    60     deps = models.ManyToManyField('self', blank = True, related_name = "%(class)s_deps")
    60     deps = models.ManyToManyField('self', blank = True, related_name = "%(class)s_deps")
    61     
    61     
    62     credits = models.PositiveSmallIntegerField()
    62     credits = models.PositiveSmallIntegerField()