Skip to content

Commit

Permalink
fix: add user type
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Sep 14, 2023
1 parent 35c8a6b commit eda7fb7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions codeforlife/user/models/user.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import typing as t
from datetime import timedelta
from enum import Enum

from django.contrib.auth.models import UserManager as AbstractUserManager
from django.contrib.auth.models import AbstractUser
from django.contrib.auth.models import UserManager as AbstractUserManager
from django.db import models
from django.utils import timezone

Expand All @@ -20,6 +20,11 @@ def create_superuser(


class User(AbstractUser):
class Type(str, Enum):
TEACHER = "teacher"
DEP_STUDENT = "dependent-student"
INDEP_STUDENT = "independent-student"

developer = models.BooleanField(default=False)
is_verified = models.BooleanField(default=False)

Expand Down

0 comments on commit eda7fb7

Please sign in to comment.