Commit 6433d60c authored by fred's avatar fred

don't list tracks that were not on air in recent diffusions

parent 612cfe33
......@@ -15,7 +15,8 @@ class Artist(models.Model):
return reverse('artist-view', kwargs={'pk': self.id})
def recent_diffusions(self):
return SomaLogLine.objects.filter(filepath__track__artist=self).order_by('-play_timestamp')
return SomaLogLine.objects.filter(filepath__track__artist=self
).exclude(on_air=False).order_by('-play_timestamp')
class Album(models.Model):
......@@ -42,7 +43,8 @@ class Track(models.Model):
return reverse('track-view', kwargs={'pk': self.id})
def recent_diffusions(self):
return SomaLogLine.objects.filter(filepath__track=self).order_by('-play_timestamp')
return SomaLogLine.objects.filter(filepath__track=self
).exclude(on_air=False).order_by('-play_timestamp')
class NonstopFile(models.Model):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment