SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit b4aaa3b5 authored by Geert Kapteijns's avatar Geert Kapteijns
Browse files

Delete commented-out function based view that is no longer neccessary

parent a9b270d3
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment