11 lines
362 B
Python
11 lines
362 B
Python
from django.contrib.auth.models import User
|
|
from django.core.management import BaseCommand
|
|
|
|
from daemons.management import bot
|
|
|
|
|
|
class Command(BaseCommand):
|
|
def handle(self, *args, **options):
|
|
for user in User.objects.filter(is_superuser=True):
|
|
bot.send_message(user.userinfo.telegram_chat_id, "Деплой прошел успешно")
|