minor bug fixes

This commit is contained in:
karthik mv 2022-08-11 13:02:26 +05:30 committed by Gowtham Sai
parent 5d184eaf61
commit 59c1842370
3 changed files with 9 additions and 5 deletions

View File

@ -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:

View File

@ -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

View File

@ -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)