models.py 196 Bytes
Newer Older
Jomaro Rodrigues's avatar
Jomaro Rodrigues committed
1
2
3
4
5
6
7
8
from django.db import models
from django.contrib.auth.models import User
from django.core.exceptions import ValidationError



class Professor(models.Model):
    user = models.OneToOneField(User)