updated branches

This commit is contained in:
Kovilapu Karthik Karthik 2023-09-10 13:46:13 +05:30
parent 95a91be90b
commit 11b74f6b3c
2 changed files with 9 additions and 3 deletions

View File

@ -8,12 +8,18 @@ BRANCH_CHOICES = [
["ME", "ME"], ["ME", "ME"],
['MMAE', 'MMAE'], ['MMAE', 'MMAE'],
['EP', 'EP'], ['EP', 'EP'],
['CIVIL', 'CIVIL'],
['CHEMICAL', 'CHEMICAL'],
['BSMS', 'BSMS'],
] ]
BRANCHES = [ BRANCHES = [
"CSE", "CSE",
"EE", "EE",
"MMAE", "MMAE",
"EP" "EP",
"CIVIL",
"CHEMICAL",
"BSMS",
] ]
BATCH_CHOICES = [ BATCH_CHOICES = [
["2022", "2022"], ["2022", "2022"],
@ -46,7 +52,7 @@ DEGREE_CHOICES = [
['mTech', 'M.Tech'], ['mTech', 'M.Tech'],
] ]
TOTAL_BRANCHES = 4 # Total No of Branches TOTAL_BRANCHES = 7 # Total No of Branches
TOTAL_BATCHES = 6 # Total No of Batches TOTAL_BATCHES = 6 # Total No of Batches
CDC_REPS_EMAILS = [ CDC_REPS_EMAILS = [

View File

@ -23,7 +23,7 @@ class User(models.Model):
class Student(models.Model): class Student(models.Model):
id = models.CharField(blank=False, max_length=15, primary_key=True) id = models.CharField(blank=False, max_length=15, primary_key=True)
roll_no = models.IntegerField(blank=False) roll_no = models.CharField(blank=False, max_length=15, unique=True)
name = models.CharField(blank=False, max_length=JNF_TEXT_MAX_CHARACTER_COUNT) name = models.CharField(blank=False, max_length=JNF_TEXT_MAX_CHARACTER_COUNT)
batch = models.CharField(max_length=10, choices=BATCH_CHOICES, blank=False) batch = models.CharField(max_length=10, choices=BATCH_CHOICES, blank=False)
branch = models.CharField(choices=BRANCH_CHOICES, blank=False, max_length=10) branch = models.CharField(choices=BRANCH_CHOICES, blank=False, max_length=10)