1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 10:22:46 +00:00

File shared link is viewd by people who generated.

This commit is contained in:
xiez
2012-07-12 20:35:13 +08:00
parent 83cd300b28
commit 654c47bafa
2 changed files with 10 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ class FileShare(models.Model):
"""
Model used for file share link.
"""
username = models.EmailField(max_length=255)
username = models.EmailField(max_length=255, db_index=True)
repo_id = models.CharField(max_length=36, db_index=True)
path = models.TextField()
token = models.CharField(max_length=10, unique=True)