X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/0c7887c5e358a6af808e9bf5f86efb56465e3605..348b50646c474a1541769a949001b7d48f14e446:/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']