Compare commits

..

No commits in common. "b97705355613dfba54f5e85b0ee1f4a12596136d" and "48ffebb221972ec1381562713e117ba2d370a001" 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 data = request.data
if OPENING_TYPE in data: if OPENING_TYPE in data:
opening_type= data[OPENING_TYPE] opening_type= data[OPENING_TYPE]
else:
opening_type= "Placement"
if opening_type == "Internship": if opening_type == "Internship":
opening = get_object_or_404(Internship, id=data[OPENING_ID]) opening = get_object_or_404(Internship, id=data[OPENING_ID])
applications = InternshipApplication.objects.filter(internship=opening) applications = InternshipApplication.objects.filter(internship=opening)