taskapp/models.py
changeset 124 6d92b7cd2a37
parent 123 a6b4234388c8
child 128 f34e3a3e1439
equal deleted inserted replaced
123:a6b4234388c8 124:6d92b7cd2a37
    85     created_by = models.ForeignKey(User, related_name = "%(class)s_created_by")
    85     created_by = models.ForeignKey(User, related_name = "%(class)s_created_by")
    86     claimed_users = models.ManyToManyField(User, blank = True, related_name = "%(class)s_claimed_users")
    86     claimed_users = models.ManyToManyField(User, blank = True, related_name = "%(class)s_claimed_users")
    87     assigned_users = models.ManyToManyField(User, blank = True, related_name = "%(class)s_assigned_users")
    87     assigned_users = models.ManyToManyField(User, blank = True, related_name = "%(class)s_assigned_users")
    88     
    88     
    89     creation_datetime = models.DateTimeField()
    89     creation_datetime = models.DateTimeField()
       
    90     published_datetime = models.DateTimeField()
    90     sub_type = models.CharField(max_length=1, choices = (('D','Dependency'),('S','Subtask')), default = 'D')   
    91     sub_type = models.CharField(max_length=1, choices = (('D','Dependency'),('S','Subtask')), default = 'D')   
    91     
    92     
    92     def __unicode__(self):
    93     def __unicode__(self):
    93         return unicode(self.title)
    94         return unicode(self.title)
    94 
    95