Show hook name in signal string method

This commit is contained in:
Mark Veidemanis 2022-12-06 22:43:43 +00:00
parent 3b8e5dbdd1
commit d59d571679
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class Signal(models.Model):
received = models.IntegerField(default=0)
def __str__(self):
return f"{self.name} ({self.signal}) - {self.direction}"
return f"{self.name} ({self.hook.name}) - {self.direction}"
class Trade(models.Model):