Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed a call from to get_datetime_now() for…

… Django 1.4 compatibility.
  • Loading branch information...
commit d834c7244c0911d4f289a5e8f67a8c649b522ba2 1 parent 577e8fe
@coordt coordt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 userena/
4 userena/
@@ -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 =
+ now = get_datetime_now()
new_user = User.objects.create_user(username, email, password)
new_user.is_active = active
Please sign in to comment.
Something went wrong with that request. Please try again.