--- a/taskapp/models.py Thu Jan 06 10:05:58 2011 +0530
+++ b/taskapp/models.py Thu Jan 06 11:42:49 2011 +0530
@@ -171,11 +171,11 @@
class WorkReport(models.Model):
- attachment = models.FileField(upload_to = UPLOADS_DIR, blank = False)
+ attachment = models.FileField(upload_to=UPLOADS_DIR)
remarks = models.TextField()
revision = models.PositiveIntegerField(default=0)
task = models.ForeignKey(Task, related_name = "%(class)s_report")
- submitted_by = models.ForeignKey(Task, related_name = "%(class)s_submitted_by")
+ submitted_by = models.ForeignKey(User, related_name = "%(class)s_submitted_by")
created_at = models.DateTimeField()