Jean-Baptiste Pasquier 2021-02-26 14:18:29 +00:00
parent 75fe62e58a
commit f8b7bd0710
1 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ def send_email_on_notification(sender, instance, created, **kwargs):
else: else:
who = requests.get(instance.author).json()['name'] who = requests.get(instance.author).json()['name']
except: except:
who = "Personne inconnue" who = "Quelqu'un"
# get identifier for resource triggering notification, and store in where # get identifier for resource triggering notification, and store in where
try: try:
@ -224,7 +224,7 @@ def send_email_on_notification(sender, instance, created, **kwargs):
else: else:
where = requests.get(instance.object).json()['name'] where = requests.get(instance.object).json()['name']
except: except:
where = "Endroit inconnu" where = "le chat"
if who == where: if who == where:
where = "t'a envoyé un message privé" where = "t'a envoyé un message privé"