diff --git a/UPDATES b/UPDATES index 85357b38..d46197cb 100644 --- a/UPDATES +++ b/UPDATES @@ -1,5 +1,14 @@ This file contains all the backwards-incompatible changes. +Version 1.3.2 + +- creating new user always creates new empty userena profile (fixes bug from 1.3.1) + +Version 1.3.1 + +- when USERENA_ACTIVATION_REQUIRED = False, creating new user does not automatically + create userena profile (bug) + Version 1.2.2 - Changed backwards relationships names for Umessages contrib application from diff --git a/userena/__init__.py b/userena/__init__.py index d7285467..6cb42012 100644 --- a/userena/__init__.py +++ b/userena/__init__.py @@ -4,7 +4,7 @@ """ default_app_config = 'userena.apps.UserenaConfig' -VERSION = (1, 3, 1) +VERSION = (1, 3, 2) __version__ = '.'.join((str(each) for each in VERSION[:4])) diff --git a/userena/managers.py b/userena/managers.py index bdc89ad4..728b2f0f 100644 --- a/userena/managers.py +++ b/userena/managers.py @@ -71,8 +71,9 @@ def create_user(self, username, email, password, active=False, for perm in ASSIGNED_PERMISSIONS['user']: assign_perm(perm[0], new_user, new_user) + userena_profile = self.create_userena_profile(new_user) + if send_email: - userena_profile = self.create_userena_profile(new_user) userena_profile.send_activation_email() return new_user