Increase maximum filename size of FileFields

This commit is contained in:
Raphael Michel
2018-03-20 13:21:20 +01:00
parent 879eb6ee9f
commit 1f083a52eb
6 changed files with 72 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ from django.db import models
class Thumbnail(models.Model):
source = models.CharField(max_length=255)
size = models.CharField(max_length=255)
thumb = models.FileField(upload_to='pub/thumbs/')
thumb = models.FileField(upload_to='pub/thumbs/', max_length=255)
class Meta:
unique_together = (('source', 'size'),)