fixed a bug in activate user and made a change in activated template .
authornishanth
Thu, 15 Apr 2010 16:15:54 +0530
changeset 48 9a52ca561c1d
parent 47 e1895d2ede97
child 49 4c1d3fe9fef1
fixed a bug in activate user and made a change in activated template .
reg/views.py
templates/index.html
--- 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):
--- 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 @@
 		<br />
 		You can know about workshops by clicking on workshops link on the left.<br />		
 	{% else %}
-		Welcome {{user.get_full_name}}<br />
+		Welcome {{user.get_full_name}}<br /><br >
 	{% endif %}
 	
 	{% if user.is_active and registered_events %}
-		Workshops you have registered for:
+		You have registered for the following workshops:
 		<ul>
 		{% for a_event in registered_events %}
 			<li><a href="/reg/event/view/{{a_event.key}}">{{a_event.title}}</a></li>