fixed a small bug.
--- a/reg/views.py Thu Apr 15 16:15:54 2010 +0530
+++ b/reg/views.py Thu Apr 15 16:40:30 2010 +0530
@@ -133,22 +133,23 @@
""" resend only if user is registered and is inactive.
"""
+ user = request.user
try:
email = request.GET['email']
except MultiValueDictKeyError:
raise Http404
try:
- user = User.objects.get(email__iexact=email)
+ new_user = User.objects.get(email__iexact=email)
except User.DoesNotExist:
raise Http404
- if user.is_active:
+ if new_user.is_active:
return redirect('/reg')
- profile = user.get_profile()
+ profile = new_user.get_profile()
activation_key = profile.activation_key
- reg_events.send_activation(user)
+ reg_events.send_activation(new_user)
return render_to_response('sent_activationkey.html', {'user':user})