Подготовка к замене AuthRejectReason
This commit is contained in:
@@ -11,9 +11,10 @@
|
||||
from datetime import datetime
|
||||
|
||||
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 UpdatedAtMixin(models.Model):
|
||||
"""
|
||||
@@ -57,7 +58,7 @@ class UpdatedAtMixin(models.Model):
|
||||
:param save: Признак необходимости сохранения
|
||||
"""
|
||||
|
||||
self.updated_at = timezone.now()
|
||||
self.updated_at = DateUtils.now()
|
||||
if save:
|
||||
self.save()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user