file field max_length set to 1024
This commit is contained in:
parent
089369490b
commit
a4e3e67285
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user