--- a/taskapp/models.py Tue Mar 02 02:25:28 2010 +0530
+++ b/taskapp/models.py Tue Mar 02 03:21:20 2010 +0530
@@ -43,11 +43,9 @@
("RU", "Remove user"), ## remove from working users list in task
)
-
IMAGES_DIR = "./images"
UPLOADS_DIR = "./uploads"
-
class CustomImageStorage(FileSystemStorage):
def path(self, name):
@@ -87,7 +85,6 @@
def __unicode__(self):
return unicode(self.user.username)
-
class Task(models.Model):
prim_key = models.AutoField(primary_key = True)
@@ -117,7 +114,6 @@
main = models.ForeignKey('Task', related_name = "%(class)s_main")
subs = models.ManyToManyField('Task', blank = True, null = True, related_name = "%(class)s_subs")
-
class Comment(models.Model):
task = models.ForeignKey('Task')
@@ -169,7 +165,6 @@
sent_from = models.ForeignKey(User, related_name = "%(class)s_sent_from", null = True, blank = True)
task = models.ForeignKey(Task, related_name = "%(class)s_sent_for", null = True, blank = True)
-
sub = models.CharField(max_length = 100)
message = models.TextField()
remarks = models.CharField(max_length = 100)