1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 07:08:55 +00:00

Added dir shared link feature

This commit is contained in:
zhengxie
2013-01-03 19:28:57 +08:00
parent c724b44386
commit f94c4c5a61
16 changed files with 577 additions and 184 deletions

View File

@@ -12,7 +12,7 @@ class AnonymousShare(models.Model):
class FileShare(models.Model):
"""
Model used for file share link.
Model used for file or dir shared link.
"""
username = models.EmailField(max_length=255, db_index=True)
repo_id = models.CharField(max_length=36, db_index=True)
@@ -20,3 +20,4 @@ class FileShare(models.Model):
token = models.CharField(max_length=10, unique=True)
ctime = models.DateTimeField(default=datetime.datetime.now)
view_cnt = models.IntegerField(default=0)
s_type = models.CharField(max_length=2, db_index=True, default='f') # `f` or `d`