from django.contrib.auth.models import User
from django.db import models


# Create your models here.

#
# class Professorx(models.Model):
#     prof = models.OneToOneField(User, on_delete=models.CASCADE)


# class Studentx(models.Model):
#     stud = models.OneToOneField(User, on_delete=models.CASCADE)


class Profile(models.Model):
    user = models.OneToOneField(User, on_delete=models.CASCADE)
    is_professor = models.BooleanField(default=False)

58c7fa47c13600898a4a515d22b72e4a08a6ef12
<mask token>

<mask token>


class Profile(models.Model):
    <mask token>
    <mask token>

<mask token>


class Profile(models.Model):
    user = models.OneToOneField(User, on_delete=models.CASCADE)
    is_professor = models.BooleanField(default=False)

from django.contrib.auth.models import User
from django.db import models


class Profile(models.Model):
    user = models.OneToOneField(User, on_delete=models.CASCADE)
    is_professor = models.BooleanField(default=False)

from django.contrib.auth.models import User
from django.db import models


# Create your models here.

#
# class Professorx(models.Model):
#     prof = models.OneToOneField(User, on_delete=models.CASCADE)


# class Studentx(models.Model):
#     stud = models.OneToOneField(User, on_delete=models.CASCADE)


class Profile(models.Model):
    user = models.OneToOneField(User, on_delete=models.CASCADE)
    is_professor = models.BooleanField(default=False)
