StudE-Backend/stude/accounts/models.py

10 lines
368 B
Python

from django.contrib.auth.models import AbstractUser
from django.db import models
class CustomUser(AbstractUser):
is_student = models.BooleanField(default=True)
is_banned = models.BooleanField(default=False)
year_level = models.CharField(max_length=50, null=True, blank=True)
semester = models.CharField(max_length=50, null=True, blank=True)
pass