X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/566ee7cbbf5ad86cc0fe154a4c592c522d97ead2..18ecb6c6e58f9b273636f80f485e749a97ebdf60:/wtem/views.py?ds=inline diff --git a/wtem/views.py b/wtem/views.py index baacf44..d786846 100644 --- a/wtem/views.py +++ b/wtem/views.py @@ -171,4 +171,11 @@ def teacher_confirmation(request, id, key): if not was_confirmed: conf.confirmed = True conf.save() - return render(request, 'wtem/teacher_confirmed.html', {'confirmation': conf, 'was_confirmed': was_confirmed}) + 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, + })