Подготовка к замене AuthRejectReason
This commit is contained in:
@@ -9,9 +9,10 @@
|
||||
"""
|
||||
|
||||
from django.db import models
|
||||
from django.utils import timezone
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from net.xeaf.rack.utils import DateUtils
|
||||
|
||||
|
||||
class DeletedAtMixin(models.Model):
|
||||
"""
|
||||
@@ -33,7 +34,7 @@ class DeletedAtMixin(models.Model):
|
||||
:param save: Признак необходимости сохранения
|
||||
"""
|
||||
|
||||
self.deleted_at = timezone.now()
|
||||
self.deleted_at = DateUtils.now()
|
||||
if save:
|
||||
self.save()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user