diff --git a/CDC_Backend/APIs/constants.py b/CDC_Backend/APIs/constants.py
index 1c9f217..23224b7 100644
--- a/CDC_Backend/APIs/constants.py
+++ b/CDC_Backend/APIs/constants.py
@@ -153,10 +153,11 @@ STUDENT_SELECTED = "student_selected"
EXCLUDE_IN_PDF = ['id', 'is_company_details_pdf', 'offer_accepted', 'is_description_pdf',
'is_compensation_details_pdf', 'is_selection_procedure_details_pdf',
- 'email_verified', 'created_at']
+ 'email_verified', 'created_at', 'changed_by', 'is_stipend_description_pdf']
SPECIAL_FORMAT_IN_PDF = ['website', 'company_details_pdf_names', 'description_pdf_names',
'compensation_details_pdf_names',
- 'selection_procedure_details_pdf_names']
+ 'selection_procedure_details_pdf_names',
+ 'stipend_description_pdf_names']
COMPANY_OPENING_ERROR_TEMPLATE = "Alert! Error submitting opening for {company_name}."
COMPANY_OPENING_SUBMITTED_TEMPLATE_SUBJECT = "Notification Submitted - {id} - Career Development Cell, IIT Dharwad"
@@ -205,10 +206,10 @@ SEASONS = (
)
SEASON_CHOICES = (
- ['summer', 'Summer'],
- ['winter', 'Winter'],
- ['autumn', 'Autumn'],
- ['spring', 'Spring'],
+ ['Summer', 'Summer'],
+ ['Winter', 'Winter'],
+ ['Autumn', 'Autumn'],
+ ['Spring', 'Spring'],
)
FACILITIES_CHOICES = [
diff --git a/CDC_Backend/APIs/utils.py b/CDC_Backend/APIs/utils.py
index deaafd0..bffbddc 100644
--- a/CDC_Backend/APIs/utils.py
+++ b/CDC_Backend/APIs/utils.py
@@ -316,10 +316,13 @@ def verify_recaptcha(request):
def opening_description_table_html(opening):
# check typing of opening
+ type = ""
if isinstance(opening, Placement):
+ type = "Job"
details = model_to_dict(opening, fields=[field.name for field in Placement._meta.fields],
exclude=EXCLUDE_IN_PDF)
elif isinstance(opening, Internship):
+ type = "Internship"
details = model_to_dict(opening, fields=[field.name for field in Internship._meta.fields],
exclude=EXCLUDE_IN_PDF)
# check typing of opening is query dict
@@ -344,7 +347,8 @@ def opening_description_table_html(opening):
imagepath = os.path.abspath('./templates/image.png')
data = {
"data": newdetails,
- "imgpath": imagepath
+ "imgpath": imagepath,
+ "type": type
}
return render_to_string(COMPANY_JNF_RESPONSE_TEMPLATE, data)
diff --git a/CDC_Backend/templates/company_jnf_response.html b/CDC_Backend/templates/company_jnf_response.html
index 33484c1..7a145ed 100644
--- a/CDC_Backend/templates/company_jnf_response.html
+++ b/CDC_Backend/templates/company_jnf_response.html
@@ -31,7 +31,7 @@