minor bug fixes
This commit is contained in:
parent
5d184eaf61
commit
59c1842370
|
@ -230,6 +230,7 @@ def addPlacement(request):
|
||||||
status=status.HTTP_200_OK)
|
status=status.HTTP_200_OK)
|
||||||
|
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
|
logger.info("ValueError in addPlacement: " + str(e))
|
||||||
return Response({'action': "Add Placement", 'message': str(e)},
|
return Response({'action': "Add Placement", 'message': str(e)},
|
||||||
status=status.HTTP_400_BAD_REQUEST)
|
status=status.HTTP_400_BAD_REQUEST)
|
||||||
except:
|
except:
|
||||||
|
|
|
@ -4,19 +4,21 @@ BRANCH_CHOICES = [
|
||||||
["CSE", "CSE"],
|
["CSE", "CSE"],
|
||||||
["EE", "EE"],
|
["EE", "EE"],
|
||||||
["ME", "ME"],
|
["ME", "ME"],
|
||||||
|
['MMAE', 'MMAE'],
|
||||||
['EP', 'EP'],
|
['EP', 'EP'],
|
||||||
]
|
]
|
||||||
BRANCHES = [
|
BRANCHES = [
|
||||||
"CSE",
|
"CSE",
|
||||||
"EE",
|
"EE",
|
||||||
"ME",
|
"MMAE",
|
||||||
"EP"
|
"EP"
|
||||||
]
|
]
|
||||||
BATCH_CHOICES = [
|
BATCH_CHOICES = [
|
||||||
["2021", "2021"],
|
["2021", "2021"],
|
||||||
["2020", "2020"],
|
["2020", "2020"],
|
||||||
["2019", "2019"],
|
["2019", "2019"],
|
||||||
["2018", "2018"]
|
["2018", "2018"],
|
||||||
|
["2017", "2017"],
|
||||||
]
|
]
|
||||||
|
|
||||||
OFFER_CITY_TYPE = [
|
OFFER_CITY_TYPE = [
|
||||||
|
@ -31,7 +33,8 @@ TIERS = [
|
||||||
['3', 'Tier 3'],
|
['3', 'Tier 3'],
|
||||||
['4', 'Tier 4'],
|
['4', 'Tier 4'],
|
||||||
['5', 'Tier 5'],
|
['5', 'Tier 5'],
|
||||||
['6', 'Tier 6']
|
['6', 'Tier 6'],
|
||||||
|
['7', 'Tier 7'],
|
||||||
]
|
]
|
||||||
|
|
||||||
DEGREE_CHOICES = [
|
DEGREE_CHOICES = [
|
||||||
|
@ -40,7 +43,7 @@ DEGREE_CHOICES = [
|
||||||
]
|
]
|
||||||
|
|
||||||
TOTAL_BRANCHES = 4 # Total No of Branches
|
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
|
# To be Configured Properly
|
||||||
CLIENT_ID = os.environ.get('GOOGLE_OAUTH_CLIENT_ID') # Google Login Client ID
|
CLIENT_ID = os.environ.get('GOOGLE_OAUTH_CLIENT_ID') # Google Login Client ID
|
||||||
|
|
|
@ -83,7 +83,7 @@ class Placement(models.Model):
|
||||||
nature_of_business = models.CharField(blank=False, max_length=JNF_SMALLTEXT_MAX_CHARACTER_COUNT, default="")
|
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)
|
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)
|
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(
|
company_details_pdf_names = ArrayField(
|
||||||
models.CharField(null=True, default=None, max_length=JNF_TEXT_MAX_CHARACTER_COUNT), size=5,
|
models.CharField(null=True, default=None, max_length=JNF_TEXT_MAX_CHARACTER_COUNT), size=5,
|
||||||
default=list, blank=True)
|
default=list, blank=True)
|
||||||
|
|
Loading…
Reference in New Issue