# -*- coding: utf-8 -*-
from django.db import models
class Auditory(models.Model):
name = models.CharField(max_length=300)
num = models.IntegerField()
def __unicode__(self):
return self.name
class Admin:
pass
class AdvAud(models.Model):
auditory = models.OneToOneField(Auditory)
info = models.CharField(max_length=300)
max_student = models.IntegerField()
def __unicode__(self):
return self.auditory