add manager for Related class; rename get_on_air as on_air + can retrieve by last logs instead of date

This commit is contained in:
bkfox
2016-07-25 15:03:54 +02:00
parent 62380c054d
commit 960fcab65d
7 changed files with 127 additions and 62 deletions

View File

@ -127,7 +127,7 @@ class SoundInfo:
if not os.path.exists(path):
return
old = Track.get_for(object = sound)
old = Track.objects.get_for(object = sound)
if old:
return