+
+
+def teacher_confirmation(request, id, key):
+ conf = get_object_or_404(TeacherConfirmation, id=id, key=key)
+ was_confirmed = conf.confirmed
+ if not was_confirmed:
+ conf.confirmed = True
+ conf.save()
+ from contact.forms import contact_forms
+ form_class = contact_forms['olimpiada']
+ if not form_class.is_disabled():
+ pass
+ return render(request, 'wtem/teacher_confirmed.html', {
+ 'confirmation': conf,
+ 'was_confirmed': was_confirmed,
+ })