initial commit

This commit is contained in:
Lucas
2024-06-09 14:55:25 -07:00
commit 3fd16b4833
39 changed files with 276 additions and 0 deletions

11
student/models.py Normal file
View File

@@ -0,0 +1,11 @@
from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Student(models.Model):
w_number = models.IntegerField()
user = models.OneToOneField(User, on_delete=models.CASCADE)
classes = models.CharField(max_length = 200)
def __str__(self):
return self.user.username.capitalize()