fix station() filter call

This commit is contained in:
bkfox 2018-07-04 10:39:14 +02:00
parent 34b72b4485
commit 2365bd6519

View File

@ -62,7 +62,8 @@ class Monitor:
def get_last_log(self, *args, **kwargs):
return Log.objects.station(self.station, *args, **kwargs) \
return Log.objects.station(self.station) \
.filter(*args, **kwargs) \
.select_related('diffusion', 'sound') \
.order_by('pk').last()