Commit a0658ef3 by Dudás Ádám

school: switch HTTP header refs to their more readable form

parent bcd703b6
...@@ -54,7 +54,7 @@ def login(request): ...@@ -54,7 +54,7 @@ def login(request):
try: try:
sem = Semester.get_current() sem = Semester.get_current()
attended = request.META['HTTP_NIIFEDUPERSONATTENDEDCOURSE'] attended = request.META['niifEduPersonAttendedCourse']
if attended == '': if attended == '':
attended = [] attended = []
else: else:
...@@ -78,7 +78,7 @@ def login(request): ...@@ -78,7 +78,7 @@ def login(request):
except ValidationError as e: except ValidationError as e:
logger.warning("Django ex4 %s" % e) logger.warning("Django ex4 %s" % e)
held = request.META['HTTP_NIIFEDUPERSONHELDCOURSE'] held = request.META['niifEduPersonHeldCourse']
if held == '': if held == '':
held = [] held = []
else: else:
...@@ -168,7 +168,7 @@ def group_show(request, gid): ...@@ -168,7 +168,7 @@ def group_show(request, gid):
if t.myshares.exists(): if t.myshares.exists():
noshare = False noshare = False
publictemplates[i] = t publictemplates[i] = t
return render_to_response("show-group.html", RequestContext(request,{ return render_to_response("show-group.html", RequestContext(request, {
'group': group, 'group': group,
'members': group.members.all(), 'members': group.members.all(),
'mytemplates': mytemplates, 'mytemplates': mytemplates,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment