|
|
@ -35,6 +35,8 @@ class Student(models.Model):
|
|
|
|
can_apply_internship = models.BooleanField(default=True, verbose_name='Internship Registered') #added for internship
|
|
|
|
can_apply_internship = models.BooleanField(default=True, verbose_name='Internship Registered') #added for internship
|
|
|
|
changed_by = models.ForeignKey(User, blank=True, on_delete=models.RESTRICT, default=None, null=True)
|
|
|
|
changed_by = models.ForeignKey(User, blank=True, on_delete=models.RESTRICT, default=None, null=True)
|
|
|
|
degree = models.CharField(choices=DEGREE_CHOICES, blank=False, max_length=10, default=DEGREE_CHOICES[0][0])
|
|
|
|
degree = models.CharField(choices=DEGREE_CHOICES, blank=False, max_length=10, default=DEGREE_CHOICES[0][0])
|
|
|
|
|
|
|
|
isPwd = models.BooleanField(default=False, verbose_name='Person with Disability')
|
|
|
|
|
|
|
|
isBacklog = models.BooleanField(default=False, verbose_name='Has Backlog')
|
|
|
|
history = HistoricalRecords(user_model=User)
|
|
|
|
history = HistoricalRecords(user_model=User)
|
|
|
|
|
|
|
|
|
|
|
|
def __str__(self):
|
|
|
|
def __str__(self):
|
|
|
@ -141,12 +143,11 @@ class Placement(models.Model):
|
|
|
|
tentative_no_of_offers = models.IntegerField(blank=False, default=None, null=True)
|
|
|
|
tentative_no_of_offers = models.IntegerField(blank=False, default=None, null=True)
|
|
|
|
expected_no_of_offers = models.IntegerField(blank=False , default=None , null=True) # newly added
|
|
|
|
expected_no_of_offers = models.IntegerField(blank=False , default=None , null=True) # newly added
|
|
|
|
number_of_employees = models.IntegerField(blank=False, default=None, null=True) # newly added field
|
|
|
|
number_of_employees = models.IntegerField(blank=False, default=None, null=True) # newly added field
|
|
|
|
rs_eligible = models.BooleanField(blank=True, default=False) # needs to be deleted
|
|
|
|
|
|
|
|
eligiblestudents = ArrayField(
|
|
|
|
eligiblestudents = ArrayField(
|
|
|
|
models.CharField(choices=ELIGIBLE_CHOICES, blank=False, max_length=10),
|
|
|
|
models.CharField(choices=ELIGIBLE_CHOICES, blank=False, max_length=10),
|
|
|
|
size=10,
|
|
|
|
size=10,
|
|
|
|
default=list
|
|
|
|
default=list
|
|
|
|
)
|
|
|
|
) #newly added field
|
|
|
|
pwd_eligible = models.BooleanField(blank=True, default=False) #newly added field
|
|
|
|
pwd_eligible = models.BooleanField(blank=True, default=False) #newly added field
|
|
|
|
backlog_eligible = models.BooleanField(blank=True, default=False) #newly added field
|
|
|
|
backlog_eligible = models.BooleanField(blank=True, default=False) #newly added field
|
|
|
|
psychometric_test = models.BooleanField(blank=True, default=False) #newly added field
|
|
|
|
psychometric_test = models.BooleanField(blank=True, default=False) #newly added field
|
|
|
@ -338,8 +339,6 @@ class Internship(models.Model):
|
|
|
|
size=TOTAL_BATCHES,
|
|
|
|
size=TOTAL_BATCHES,
|
|
|
|
default=list
|
|
|
|
default=list
|
|
|
|
)
|
|
|
|
)
|
|
|
|
sophomore_eligible = models.BooleanField(blank=False, default=False)
|
|
|
|
|
|
|
|
rs_eligible = models.BooleanField(blank=False, default=False) # needs to be deleted
|
|
|
|
|
|
|
|
eligiblestudents = ArrayField(
|
|
|
|
eligiblestudents = ArrayField(
|
|
|
|
models.CharField(choices=ELIGIBLE_CHOICES, blank=False, max_length=10),
|
|
|
|
models.CharField(choices=ELIGIBLE_CHOICES, blank=False, max_length=10),
|
|
|
|
size=10,
|
|
|
|
size=10,
|
|
|
|