From a4e3e67285139bf255b9342c967c86b7929105ec Mon Sep 17 00:00:00 2001 From: sanj Date: Wed, 28 Jul 2010 03:30:31 +0530 Subject: [PATCH] file field max_length set to 1024 --- edgware/files/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edgware/files/models.py b/edgware/files/models.py index 30b50a2..e8d0286 100755 --- a/edgware/files/models.py +++ b/edgware/files/models.py @@ -69,7 +69,7 @@ class Folder(models.Model): class File(models.Model): - file = models.FileField('File', upload_to=UPLOAD_ROOT) + file = models.FileField('File', upload_to=UPLOAD_ROOT, max_length=1024) full_path = models.CharField(max_length=2048, blank=True, db_index=True) #makes it more efficient to retrieve a file by path instead of using self.file.path title = models.CharField(max_length=255) description = models.TextField(blank=True)