mirror of
				https://gitlab.crans.org/bde/nk20-scripts
				synced 2025-10-30 06:49:50 +01:00 
			
		
		
		
	Send mail to admins if a user got deleted iff it was successfully deleted
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
		| @@ -173,4 +173,5 @@ class Command(BaseCommand): | ||||
|             message += "Ont été supprimés en conséquence les objets suivants :\n\n" | ||||
|             for obj in deleted: | ||||
|                 message += f"{repr(obj)} (pk: {obj.pk})\n" | ||||
|             if force and kwargs['doit']: | ||||
|                 mail_admins("Utilisateurs supprimés", message) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user