Now display CLI instructions to download a set of tracks

This commit is contained in:
Eliot Berriot 2017-07-11 08:40:54 +02:00
parent c34ea44687
commit e8eaf6db94
6 changed files with 108 additions and 6 deletions

View file

@ -362,6 +362,12 @@ class TrackFile(models.Model):
'api:v1:trackfiles-serve', kwargs={'pk': self.pk})
return self.audio_file.url
@property
def filename(self):
return '{}{}'.format(
self.track.full_name,
os.path.splitext(self.audio_file.name)[-1])
class ImportBatch(models.Model):
creation_date = models.DateTimeField(default=timezone.now)