taskapp/models.py
changeset 21 c28774fe7ffd
parent 18 a39549bd5b08
child 22 36d3173ab7f9
equal deleted inserted replaced
20:ec7b1751c161 21:c28774fe7ffd
    94     points = models.PositiveSmallIntegerField()
    94     points = models.PositiveSmallIntegerField()
    95     given_time = models.DateTimeField()
    95     given_time = models.DateTimeField()
    96     
    96     
    97     def __unicode__(self):
    97     def __unicode__(self):
    98         return unicode(self.task.title)
    98         return unicode(self.task.title)
       
    99         
       
   100 class Claim(models.Model):
    99     
   101     
       
   102     task = models.ForeignKey('Task')
       
   103     user = models.ForeignKey(User)
       
   104     message = models.TextField()
       
   105     creation_datetime = models.DateTimeField()
       
   106