Skip to content
This repository was archived by the owner on Oct 22, 2019. It is now read-only.

Commit cc88cef

Browse files
author
Michał Jaworski
committed
Merge branch 'v1.3.x'
Conflicts: UPDATES
2 parents 199c24b + 59ae1ae commit cc88cef

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

UPDATES

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
This file contains all the backwards-incompatible changes.
22

3+
Version 1.3.2
4+
5+
- creating new user always creates new empty userena profile (fixes bug from 1.3.1)
6+
37
Version 1.3.1
48

59
- when USERENA_ACTIVATION_REQUIRED = False, creating new user does not automatically

userena/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55
default_app_config = 'userena.apps.UserenaConfig'
66

7-
VERSION = (1, 3, 1)
7+
VERSION = (1, 3, 2)
88

99
__version__ = '.'.join((str(each) for each in VERSION[:4]))
1010

userena/managers.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ def create_user(self, username, email, password, active=False,
7272
for perm in ASSIGNED_PERMISSIONS['user']:
7373
assign_perm(perm[0], new_user, new_user)
7474

75+
userena_profile = self.create_userena_profile(new_user)
76+
7577
if send_email:
76-
userena_profile = self.create_userena_profile(new_user)
7778
userena_profile.send_activation_email()
7879

7980
return new_user

0 commit comments

Comments
 (0)