Permalink
Browse files

Merge pull request #178 from coordt/master

Fixed a call from datetime.datetime.now() to get_datetime_now()
  • Loading branch information...
wunki committed Apr 3, 2012
2 parents 577e8fe + d834c72 commit 33116b9fc074caae0537ab5d5ee6e5171964a4e9
Showing with 2 additions and 2 deletions.
  1. +2 −2 userena/managers.py
View
@@ -5,7 +5,7 @@
from django.utils.translation import ugettext as _
from userena import settings as userena_settings
-from userena.utils import generate_sha1, get_profile_model
+from userena.utils import generate_sha1, get_profile_model, get_datetime_now
from userena import signals as userena_signals
from guardian.shortcuts import assign, get_perms
@@ -53,7 +53,7 @@ def create_user(self, username, email, password, active=False,
:return: :class:`User` instance representing the new user.
"""
- now = datetime.datetime.now()
+ now = get_datetime_now()
new_user = User.objects.create_user(username, email, password)
new_user.is_active = active

0 comments on commit 33116b9

Please sign in to comment.