Merge pull request #175 from CDC-IITDH/updatingBatch

updated branches
This commit is contained in:
karthik mv 2023-09-10 14:06:50 +05:30 committed by GitHub
commit 7fc18bb2fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

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

View File

@ -23,7 +23,7 @@ class User(models.Model):
class Student(models.Model):
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)
batch = models.CharField(max_length=10, choices=BATCH_CHOICES, blank=False)
branch = models.CharField(choices=BRANCH_CHOICES, blank=False, max_length=10)