bugfix error 500 when click service hold/resume button
Compare changes
@@ -287,9 +287,9 @@ def convert_monitor_to_html(request, monitor_data):
@@ -287,9 +287,9 @@ def convert_monitor_to_html(request, monitor_data):
service_enabled = str(record.enabled) + ' <a href="service_hold_resume/' + str(record.pk) + '/False"' + 'class="btn btn-warning btn-sm" role="button"><i class="fas fa-pause"></i> Hold</a>'
service_enabled = str(record.enabled) + ' <a href="service_hold_resume/' + str(record.pk) + '/True"' + 'class="btn btn-success btn-sm" role="button"><i class="fas fa-play"></i> Resume</a>'