Skip to content

Instantly share code, notes, and snippets.

@Allwin12
Created June 1, 2021 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Allwin12/38ee425ca02b0a71289061ae70be01b5 to your computer and use it in GitHub Desktop.
Save Allwin12/38ee425ca02b0a71289061ae70be01b5 to your computer and use it in GitHub Desktop.
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