12 lines
325 B
Python
12 lines
325 B
Python
from __future__ import unicode_literals
|
|
from django.contrib.auth.models import User
|
|
|
|
from django.db import models
|
|
|
|
class Committee(models.Model):
|
|
name = models.CharField(max_length=100, unique=True)
|
|
chair = models.ForeignKey(User, null=True, on_delete=models.CASCADE)
|
|
|
|
def __str__(self):
|
|
return self.name
|