class Auditory models Model name models CharField max_length 300 num m

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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()