X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/6ad215c7fe18f795e9f5e1670e17a61b7ebf78ca..e6cc0d153ce3dfe36826f666d3dae9fb4ec82060:/catalogue/models.py?ds=inline diff --git a/catalogue/models.py b/catalogue/models.py index 6d1b97a..8ecf7ac 100644 --- a/catalogue/models.py +++ b/catalogue/models.py @@ -296,7 +296,7 @@ class Attachment(models.Model): slug = models.CharField(max_length=255) ext = models.CharField(max_length=15) lesson = models.ForeignKey(Lesson) - file = models.FileField(upload_to="catalogue/attachment", storage=bofh_storage) + file = models.FileField(upload_to="catalogue/attachment", storage=bofh_storage, max_length=255) class Meta: ordering = ['slug', 'ext']