Fix #142: Increased max_length on TrackFile.source

This commit is contained in:
Eliot Berriot 2018-04-19 22:25:58 +02:00
parent b27312648c
commit 2be46b3320
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 20 additions and 1 deletions

View file

@ -412,7 +412,7 @@ class TrackFile(models.Model):
track = models.ForeignKey(
Track, related_name='files', on_delete=models.CASCADE)
audio_file = models.FileField(upload_to='tracks/%Y/%m/%d', max_length=255)
source = models.URLField(null=True, blank=True)
source = models.URLField(null=True, blank=True, max_length=500)
creation_date = models.DateTimeField(default=timezone.now)
modification_date = models.DateTimeField(auto_now=True)
duration = models.IntegerField(null=True, blank=True)