Compare commits

..

No commits in common. "a6ec89f1c6633165812dbb786170327ab31f3fcb" and "5e53859f52d9040b89ee31e3e1fa74703170c5f9" have entirely different histories.

1 changed files with 2 additions and 1 deletions

View File

@ -467,7 +467,8 @@ def downloadResume(request, id, email, user_type):
data = request.data
if OPENING_TYPE in data:
opening_type= data[OPENING_TYPE]
else:
opening_type= "Placement"
if opening_type == "Internship":
opening = get_object_or_404(Internship, id=data[OPENING_ID])
applications = InternshipApplication.objects.filter(internship=opening)