summaryrefslogtreecommitdiff
path: root/ishtar_common/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-03-27 14:47:12 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-06-13 18:08:06 +0200
commit84ed3cfb40a64e64ddc32cc0df943cb12e198717 (patch)
treed4220a3a19ee6ae31fbf281d7e0d35fb5b452cd1 /ishtar_common/wizards.py
parentdb174e7f376a3687cb6cd84339592231ceae0ee0 (diff)
downloadIshtar-84ed3cfb40a64e64ddc32cc0df943cb12e198717.tar.bz2
Ishtar-84ed3cfb40a64e64ddc32cc0df943cb12e198717.zip
♻️ django: fix warnings for v5 - migrate to timezone aware dates
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r--ishtar_common/wizards.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py
index e580b9e42..c0901a324 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -47,6 +47,7 @@ from django.http import HttpResponseRedirect, Http404
from django.forms import ValidationError
from django.shortcuts import redirect, render, reverse
from django.template import loader
+from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from django.utils.safestring import mark_safe
@@ -2115,7 +2116,7 @@ class AccountWizard(Wizard):
account.username = dct["username"]
account.email = dct["email"]
except ObjectDoesNotExist:
- now = datetime.datetime.now()
+ now = timezone.now()
account = models.User.objects.create(
username=dct["username"],
email=dct["email"],