mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 14:29:25 +08:00
10 lines
409 B
Python
10 lines
409 B
Python
from django.contrib.auth.models import AbstractUser
|
|
from django.db import models
|
|
|
|
|
|
class CustomUser(AbstractUser):
|
|
is_student = models.BooleanField(default=True)
|
|
is_admin = models.BooleanField(default=False)
|
|
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)
|