diff --git a/bots/models.py b/bots/models.py index 33b4bb5..ef10db0 100644 --- a/bots/models.py +++ b/bots/models.py @@ -38,6 +38,7 @@ class TelegramBot(models.Model): return self.config.periodic_task(self.get_bot()) self.periodic_last_run = timezone.now() + self.save() def __str__(self): return f'#{self.pk} {self.title}'