Added an accessed_date field on TrackFile for easier cache deletion (#189)

This commit is contained in:
Eliot Berriot 2018-05-06 15:36:18 +02:00
parent 2649ad88ff
commit f343159856
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 38 additions and 0 deletions

View file

@ -415,6 +415,7 @@ class TrackFile(models.Model):
source = models.URLField(null=True, blank=True, max_length=500)
creation_date = models.DateTimeField(default=timezone.now)
modification_date = models.DateTimeField(auto_now=True)
accessed_date = models.DateTimeField(null=True, blank=True)
duration = models.IntegerField(null=True, blank=True)
acoustid_track_id = models.UUIDField(null=True, blank=True)
mimetype = models.CharField(null=True, blank=True, max_length=200)