Bot container restart from admin-panel
This commit is contained in:
14
lottery/templates/admin/botconfig_change_form.html
Normal file
14
lottery/templates/admin/botconfig_change_form.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{% extends "admin/change_form.html" %}
|
||||
{% load static %}
|
||||
|
||||
{% block object-tools %}
|
||||
{{ block.super }}
|
||||
{% if original %}
|
||||
<li>
|
||||
<a class="button"
|
||||
href="{% url 'admin:botconfig-restart' original.pk %}">
|
||||
🔁 Перезапустить бота
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user