Removed extra timezone.now()

This commit is contained in:
Aaron Katz 2023-10-24 21:21:05 +02:00
parent 45d9263e2d
commit 3d60f20cc6

View File

@ -527,7 +527,6 @@ class DocumentViewSet(
# If audit log is enabled make an entry in the log
# about this note change
if settings.AUDIT_LOG_ENABLED:
timezone.now()
LogEntry.objects.log_create(
instance=doc,
changes=json.dumps(
@ -563,7 +562,6 @@ class DocumentViewSet(
note = Note.objects.get(id=int(request.GET.get("id")))
if settings.AUDIT_LOG_ENABLED:
timezone.now()
LogEntry.objects.log_create(
instance=doc,
changes=json.dumps(