equal
deleted
inserted
replaced
125 attachment = models.FileField(upload_to = UPLOADS_DIR, blank = True) |
125 attachment = models.FileField(upload_to = UPLOADS_DIR, blank = True) |
126 |
126 |
127 def __unicode__(self): |
127 def __unicode__(self): |
128 return unicode(self.task.title) |
128 return unicode(self.task.title) |
129 |
129 |
130 class Credit(models.Model): |
|
131 |
|
132 task = models.ForeignKey('Task') |
|
133 given_by = models.ForeignKey(User, related_name = "%(class)s_given_by") |
|
134 given_to = models.ForeignKey(User, related_name = "%(class)s_given_to") |
|
135 points = models.PositiveSmallIntegerField() |
|
136 given_time = models.DateTimeField() |
|
137 |
|
138 def __unicode__(self): |
|
139 return unicode(self.task.title) |
|
140 |
|
141 class Claim(models.Model): |
130 class Claim(models.Model): |
142 |
131 |
143 task = models.ForeignKey('Task') |
132 task = models.ForeignKey('Task') |
144 user = models.ForeignKey(User) |
133 user = models.ForeignKey(User) |
145 message = models.TextField() |
134 message = models.TextField() |