equal
deleted
inserted
replaced
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 """ |