From bab382c8ec38559580b8f5f18565b8d6922fbe4c Mon Sep 17 00:00:00 2001 From: NitinVangipuram Date: Wed, 14 Aug 2024 22:42:40 +0530 Subject: [PATCH] changes to student model --- CDC_Backend/APIs/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CDC_Backend/APIs/models.py b/CDC_Backend/APIs/models.py index 59397ca..7cb799c 100644 --- a/CDC_Backend/APIs/models.py +++ b/CDC_Backend/APIs/models.py @@ -26,7 +26,7 @@ class Student(models.Model): 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) + branch = models.CharField(choices=BRANCH_CHOICES, blank=True,default=None, null=True, max_length=10) phone_number = models.PositiveBigIntegerField(blank=True, default=None, null=True) resumes = ArrayField(models.CharField(null=True, default=None, max_length=JNF_TEXT_MAX_CHARACTER_COUNT), size=10, default=list, blank=True)