summaryrefslogtreecommitdiff
path: root/tbc/views.py
diff options
context:
space:
mode:
authorhardythe12013-12-30 17:06:52 +0530
committerhardythe12013-12-30 17:06:52 +0530
commitcefbd01ffd5646d87e3656861ae4e5a2826b2493 (patch)
treeb203195d6421dc820ab688d7769a7b381eebc6b7 /tbc/views.py
parent5bcde8fafa5c7e5bb99263572656c7395e57cc4e (diff)
downloadPython-TBC-Interface-cefbd01ffd5646d87e3656861ae4e5a2826b2493.tar.gz
Python-TBC-Interface-cefbd01ffd5646d87e3656861ae4e5a2826b2493.tar.bz2
Python-TBC-Interface-cefbd01ffd5646d87e3656861ae4e5a2826b2493.zip
adding static page internship forms
Diffstat (limited to 'tbc/views.py')
-rw-r--r--tbc/views.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tbc/views.py b/tbc/views.py
index a8aded8..d5c5ee6 100644
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -31,6 +31,18 @@ def is_reviewer(user):
return True
+def InternshipForms(request):
+ context = {}
+ images = []
+ if request.user.is_anonymous():
+ context['anonymous'] = True
+ else:
+ if is_reviewer(request.user):
+ context['reviewer'] = request.user
+ else:
+ context['user'] = request.user
+ return render_to_response('tbc/internship-forms.html', context)
+
def Home(request):
context = {}
images = []