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

Commit

Permalink
Merge branch 'v1.3.x'
Browse files Browse the repository at this point in the history
Conflicts:
	UPDATES
  • Loading branch information
Michał Jaworski committed Jan 9, 2015
2 parents 199c24b + 59ae1ae commit cc88cef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions UPDATES
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
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
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 @@ -72,8 +72,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 cc88cef

Please sign in to comment.