Access the UserProfile's new is_active field rather than User's.

(imported from commit ed5bdaf3e3d6d20bfb741efdac48d30482ab9ef7)
This commit is contained in:
Tim Abbott
2013-03-28 15:47:22 -04:00
parent 1443edce00
commit 2fcbb31dcf
7 changed files with 10 additions and 10 deletions

View File

@@ -17,7 +17,7 @@ def is_unique(value):
def is_inactive(value):
try:
if get_user_profile_by_email(value).user.is_active:
if get_user_profile_by_email(value).is_active:
raise ValidationError(u'%s is already active' % value)
except UserProfile.DoesNotExist:
pass