diff --git a/CDC_Backend/APIs/companyViews.py b/CDC_Backend/APIs/companyViews.py index fe7da63..3421b2f 100644 --- a/CDC_Backend/APIs/companyViews.py +++ b/CDC_Backend/APIs/companyViews.py @@ -230,6 +230,7 @@ def addPlacement(request): status=status.HTTP_200_OK) except ValueError as e: + logger.info("ValueError in addPlacement: " + str(e)) return Response({'action': "Add Placement", 'message': str(e)}, status=status.HTTP_400_BAD_REQUEST) except: diff --git a/CDC_Backend/APIs/constants.py b/CDC_Backend/APIs/constants.py index d3cd9ac..576165e 100644 --- a/CDC_Backend/APIs/constants.py +++ b/CDC_Backend/APIs/constants.py @@ -4,19 +4,21 @@ BRANCH_CHOICES = [ ["CSE", "CSE"], ["EE", "EE"], ["ME", "ME"], + ['MMAE', 'MMAE'], ['EP', 'EP'], ] BRANCHES = [ "CSE", "EE", - "ME", + "MMAE", "EP" ] BATCH_CHOICES = [ ["2021", "2021"], ["2020", "2020"], ["2019", "2019"], - ["2018", "2018"] + ["2018", "2018"], + ["2017", "2017"], ] OFFER_CITY_TYPE = [ @@ -31,7 +33,8 @@ TIERS = [ ['3', 'Tier 3'], ['4', 'Tier 4'], ['5', 'Tier 5'], - ['6', 'Tier 6'] + ['6', 'Tier 6'], + ['7', 'Tier 7'], ] DEGREE_CHOICES = [ @@ -40,7 +43,7 @@ DEGREE_CHOICES = [ ] TOTAL_BRANCHES = 4 # Total No of Branches -TOTAL_BATCHES = 4 # Total No of Batches +TOTAL_BATCHES = 5 # Total No of Batches # To be Configured Properly CLIENT_ID = os.environ.get('GOOGLE_OAUTH_CLIENT_ID') # Google Login Client ID diff --git a/CDC_Backend/APIs/models.py b/CDC_Backend/APIs/models.py index 5003428..a7b50a1 100644 --- a/CDC_Backend/APIs/models.py +++ b/CDC_Backend/APIs/models.py @@ -83,7 +83,7 @@ class Placement(models.Model): nature_of_business = models.CharField(blank=False, max_length=JNF_SMALLTEXT_MAX_CHARACTER_COUNT, default="") type_of_organisation = models.CharField(max_length=JNF_SMALLTEXT_MAX_CHARACTER_COUNT, default="", blank=False) website = models.CharField(blank=True, max_length=JNF_TEXT_MAX_CHARACTER_COUNT) - company_details = models.CharField(max_length=JNF_TEXTAREA_MAX_CHARACTER_COUNT, default=None, null=True) + company_details = models.CharField(max_length=JNF_TEXTAREA_MAX_CHARACTER_COUNT, default=None, null=True, blank=True) company_details_pdf_names = ArrayField( models.CharField(null=True, default=None, max_length=JNF_TEXT_MAX_CHARACTER_COUNT), size=5, default=list, blank=True)