fixed a bug in register user view .
--- a/reg/views.py Mon Apr 12 13:49:00 2010 +0530
+++ b/reg/views.py Mon Apr 12 13:53:57 2010 +0530
@@ -71,12 +71,12 @@
affiliated_to=data['affiliated_to'],
interests=data['interests']
)
- return render_to_response('account_created.html',{'user':user})
+ return render_to_response('account_created.html')
else:
- return render_to_response('register.html', {'user':user, 'form':form})
+ return render_to_response('register.html', {'form':form})
else:
form = reg_forms.RegisterForm()
- return render_to_response('register.html', {'user':user, 'form':form})
+ return render_to_response('register.html', {'form':form})
def create_event(request):
""" see if the user is a staff and only then let him do it.
--- a/templates/base.html Mon Apr 12 13:49:00 2010 +0530
+++ b/templates/base.html Mon Apr 12 13:53:57 2010 +0530
@@ -6,6 +6,7 @@
{% endblock %}
</title></head>
<body>
+<a href="/reg">Home</a> |
{% if user.is_authenticated %}
Welcome {{user.get_full_name}} |
<a href="/reg/profile/edit">My Profile</a> |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/event_register.html Mon Apr 12 13:53:57 2010 +0530
@@ -0,0 +1,5 @@
+{% extends "base.html" %}
+{% block content %}
+ You have successfully registered for the workshop {{event.title}}.<br />
+ <a href="/reg/event/view/{{event.key}}">Click here</a> to return to view the workshop.
+{% endblock %}