X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/968d158dc47ba5894b5c0df6d57d52e063c3ba4d..408f2a8ab658eb038a9a98892a253761dfca20d4:/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, + })