Добавлен класс ConfigurationManager
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user