# HG changeset patch
# User nishanth
# Date 1271328354 -19800
# Node ID 9a52ca561c1d545bc4189d11c00cfa35a83892d1
# Parent e1895d2ede97d15c0ead9da72f1a344f738513fe
fixed a bug in activate user and made a change in activated template .
diff -r e1895d2ede97 -r 9a52ca561c1d reg/views.py
--- a/reg/views.py Thu Apr 15 16:01:03 2010 +0530
+++ b/reg/views.py Thu Apr 15 16:15:54 2010 +0530
@@ -125,8 +125,8 @@
except Profile.DoesNotExist:
raise Http404
- user = profile.user
- reg_events.activate_user(user)
+ new_user = profile.user
+ reg_events.activate_user(new_user)
return render_to_response('account_activated.html', {'user':user})
def resend_activation(request):
diff -r e1895d2ede97 -r 9a52ca561c1d templates/index.html
--- a/templates/index.html Thu Apr 15 16:01:03 2010 +0530
+++ b/templates/index.html Thu Apr 15 16:15:54 2010 +0530
@@ -5,11 +5,11 @@
You can know about workshops by clicking on workshops link on the left.
{% else %}
- Welcome {{user.get_full_name}}
+ Welcome {{user.get_full_name}}
{% endif %}
{% if user.is_active and registered_events %}
- Workshops you have registered for:
+ You have registered for the following workshops: