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

@@ -84,7 +84,7 @@ class Invoice(models.Model):
foreign_currency_rate = models.DecimalField(decimal_places=4, max_digits=10, null=True, blank=True)
foreign_currency_rate_date = models.DateField(null=True, blank=True)
file = models.FileField(null=True, blank=True, upload_to=invoice_filename)
file = models.FileField(null=True, blank=True, upload_to=invoice_filename, max_length=255)
internal_reference = models.TextField(blank=True)
@staticmethod