fix station() filter call
This commit is contained in:
parent
34b72b4485
commit
2365bd6519
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user