commit
7fc18bb2fb
|
@ -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"],
|
||||||
|
@ -47,7 +53,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 = [
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue