reg/views.py
changeset 48 9a52ca561c1d
parent 47 e1895d2ede97
child 49 4c1d3fe9fef1
equal deleted inserted replaced
47:e1895d2ede97 48:9a52ca561c1d
   123     try:
   123     try:
   124         profile = Profile.objects.get(activation_key__iexact=activation_key)
   124         profile = Profile.objects.get(activation_key__iexact=activation_key)
   125     except Profile.DoesNotExist:
   125     except Profile.DoesNotExist:
   126         raise Http404
   126         raise Http404
   127 
   127 
   128     user = profile.user
   128     new_user = profile.user
   129     reg_events.activate_user(user)
   129     reg_events.activate_user(new_user)
   130     return render_to_response('account_activated.html', {'user':user})
   130     return render_to_response('account_activated.html', {'user':user})
   131     
   131     
   132 def resend_activation(request):
   132 def resend_activation(request):
   133     """ resend only if user is registered and is inactive.
   133     """ resend only if user is registered and is inactive.
   134     """
   134     """