--- a/app/projrev/views/login.py Fri Aug 07 04:13:53 2009 +0530
+++ b/app/projrev/views/login.py Sat Aug 08 23:54:36 2009 +0530
@@ -33,7 +33,10 @@
if user is not None:
if user.is_active:
login(request, user)
- return HttpResponseRedirect('/proposal/submit/')
+ if user.is_staff:
+ return HttpResponseRedirect('/proposal/review/')
+ else:
+ return HttpResponseRedirect('/proposal/submit/')
else:
pass
# Return a 'disabled account' error message
@@ -57,17 +60,19 @@
user.save()
subject = "[Sakshath] Registration at Saskshath portal"
message = """Hi,
- We have received a request for registration of your
- email address, "%s", to the http://sakshath.ac.in mailing list.
- \n\n
- Your login credentials are:\n
- username: %s\n
- password: %s\n\n\n
- Regards,
- Saksath admin
- """ % (username, username, password)
+ We have received a request for registration of your email address,
+"%s", to the http://sakshath.ac.in portal.
+
+Your login credentials are:
+ username: %s
+ password: %s
+
+--
+Regards,
+Saksath admin""" % (username, username, password)
user.email_user(subject=subject, message=message)
+
context = {
'created': True,
'username': username,