Created
June 1, 2021 08:42
-
-
Save Allwin12/38ee425ca02b0a71289061ae70be01b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
class Student(models.Model): | |
name = models.CharField(max_length=100) | |
address = models.TextField() | |
date_of_birth = models.DateField() | |
school_name = models.CharField(max_length=100) | |
college_name = models.CharField(max_length=100) | |
notes = models.TextField() | |
current_job = models.CharField(max_length=100) | |
company_name = models.CharField(max_length=100) | |
def __str__(self): | |
return self.name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment