diff --git a/theses/views.py b/theses/views.py index f4575ace1923a87f8c8d9af42535eb92c328e191..7e738e39d719d57235c783350d1a1d2b4c6cb814 100644 --- a/theses/views.py +++ b/theses/views.py @@ -44,41 +44,6 @@ class RequestThesisLink(CreateView): return render(self.request, 'scipost/acknowledgement.html', context) - -# @permission_required('scipost.can_request_thesislinks', raise_exception=True) -# def request_thesislink(request): -# if request.method == 'POST': -# form = RequestThesisLinkForm(request.POST) -# if form.is_valid(): -# contributor = Contributor.objects.get(user=request.user) -# thesislink = ThesisLink( -# requested_by=contributor, -# type=form.cleaned_data['type'], -# discipline=form.cleaned_data['discipline'], -# domain=form.cleaned_data['domain'], -# subject_area=form.cleaned_data['subject_area'], -# title=form.cleaned_data['title'], -# author=form.cleaned_data['author'], -# supervisor=form.cleaned_data['supervisor'], -# institution=form.cleaned_data['institution'], -# defense_date=form.cleaned_data['defense_date'], -# pub_link=form.cleaned_data['pub_link'], -# abstract=form.cleaned_data['abstract'], -# latest_activity=timezone.now(), -# ) -# thesislink.save() -# # return HttpResponseRedirect('request_thesislink_ack') -# context = {'ack_header': 'Thank you for your request for a Thesis Link', -# 'ack_message': 'Your request will soon be handled by an Editor. ', -# 'followup_message': 'Return to your ', -# 'followup_link': reverse('scipost:personal_page'), -# 'followup_link_label': 'personal page'} -# return render(request, 'scipost/acknowledgement.html', context) -# else: -# form = RequestThesisLinkForm() -# return render(request, 'theses/request_thesislink.html', {'form': form}) - - @permission_required('scipost.can_vet_thesislink_requests', raise_exception=True) def vet_thesislink_requests(request): contributor = Contributor.objects.get(user=request.user)