mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-06-29 00:35:45 +08:00
Add code for production and dev email credentials and create initial custom user model
This commit is contained in:
parent
852e49f337
commit
f250cfd2e3
2 changed files with 19 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
|||
from django.contrib.auth.models import AbstractUser
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue