diff --git a/streetup/common/admin_scheduled_tasks.py b/streetup/common/admin_scheduled_tasks.py index 8f49880..7c1056c 100644 --- a/streetup/common/admin_scheduled_tasks.py +++ b/streetup/common/admin_scheduled_tasks.py @@ -331,12 +331,8 @@ StreetUp - Système de tâches planifiées def is_active_display(self, obj): """Affiche le statut avec une icône.""" if obj.is_active: - return format_html( - '✓ Active' - ) - return format_html( - '✗ Inactive' - ) + return mark_safe('✓ Active') + return mark_safe('✗ Inactive') is_active_display.short_description = "Statut" def last_run_display(self, obj): @@ -580,8 +576,8 @@ class CommandExecutionLogAdmin(admin.ModelAdmin): def email_sent_display(self, obj): """Affiche si l'email a été envoyé.""" if obj.email_sent: - return format_html('✓') - return format_html('-') + return mark_safe('✓') + return mark_safe('-') email_sent_display.short_description = "Email" def output_formatted(self, obj):