Browse Source

Permitir limpar log de execução de jobs manualmente

pull/172/head
Sesóstris Vieira 9 months ago
parent
commit
0ff170d7ff
  1. 5
      sigi/apps/utils/admin.py

5
sigi/apps/utils/admin.py

@ -186,7 +186,10 @@ class JobScheduleAdmin(admin.ModelAdmin):
return False
def has_delete_permission(self, request, obj=None):
return False
if obj is None or obj.status == JobSchedule.STATUS_CONCLUIDO:
return super().has_delete_permission(request, obj)
else:
return False
def has_change_permission(self, request, obj=None):
return False

Loading…
Cancel
Save