mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-28 01:43:46 +00:00
Pas d'envoit de mail pour les updates
This commit is contained in:
parent
6440ac48e8
commit
295f7fa5fa
1 changed files with 4 additions and 3 deletions
|
@ -72,6 +72,7 @@ class Preferences(models.Model):
|
|||
@receiver(post_save, sender=Ticket)
|
||||
def ticket_post_save(**kwargs):
|
||||
"""Envoit du mail de publication du ticket"""
|
||||
if Preferences.objects.first().publish_address:
|
||||
ticket = kwargs['instance']
|
||||
ticket.publish_mail()
|
||||
if kwargs['created']:
|
||||
if Preferences.objects.first().publish_address:
|
||||
ticket = kwargs['instance']
|
||||
ticket.publish_mail()
|
||||
|
|
Loading…
Reference in a new issue