file field max_length set to 1024

This commit is contained in:
sanj 2010-07-28 03:30:31 +05:30
parent 089369490b
commit a4e3e67285

View File

@ -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)