Fix ironic ticket creation loop when submitter email == queue email

This commit is contained in:
Timothy Hobbs
2020-01-17 18:11:52 +01:00
parent df94b56b07
commit 90621f575d
2 changed files with 33 additions and 0 deletions

View File

@@ -613,6 +613,8 @@ class Ticket(models.Model):
if dont_send_to is not None:
recipients.update(dont_send_to)
recipients.add(self.queue.email_address)
def should_receive(email):
return email and email not in recipients