Добавлен класс ConfigurationManager

This commit is contained in:
2026-07-12 20:37:43 +03:00
parent 9c13222d0d
commit 1acd7c0029
5 changed files with 185 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ class ExpiresAtMixin(models.Model):
"""
# Проверка значений
if seconds <=0:
if seconds <= 0:
raise ValueError(f"The seconds parameter must be greater than 0")
self.expires_at = timezone.now() + timedelta(seconds=seconds)