diff options
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r-- | ishtar_common/wizards.py | 3 |
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"], |