1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00

rm unused code & file for 'file comment'

This commit is contained in:
llj
2013-04-05 14:45:54 +08:00
parent 575394cfbf
commit efeb4d5ea5
5 changed files with 2 additions and 90 deletions

View File

@@ -19,22 +19,6 @@ class UuidObjidMap(models.Model):
uuid = models.CharField(max_length=40)
obj_id = models.CharField(max_length=40, unique=True)
class FileComment(models.Model):
"""
Model used for leave comment on file.
NOTE:
Need manually create index for (file_path_hash, repo_id).
"""
repo_id = models.CharField(max_length=36, db_index=True)
file_path = models.TextField()
file_path_hash = models.CharField(max_length=12)
from_email = models.EmailField()
message = models.TextField()
timestamp = models.DateTimeField(default=datetime.datetime.now)
class Meta:
ordering = ['-timestamp']
class FileDiscuss(models.Model):
"""
Model used to represents the relationship between group message and file/dir.