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

Commit

Permalink
always create new empty userena profile on user creation, bump version (
Browse files Browse the repository at this point in the history
fixes #448)
  • Loading branch information
Michał Jaworski committed Jan 9, 2015
1 parent 1764008 commit 59ae1ae
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions UPDATES
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion userena/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]))

Expand Down
3 changes: 2 additions & 1 deletion userena/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59ae1ae

Please sign in to comment.