My Models Are:
from django.db import models
Create your models here.
class ExamCenter(models.Model):
cname=models.CharField(max_length=70)
city=models.CharField(max_length=60)
class Student(ExamCenter):
name=models.CharField(max_length=60,default=False)
roll=models.IntegerField(default=False)
- when i Type python manage.py it generate an error but i cannot find it. the error is You are trying to add a non-nullable field 'examcenter_ptr' to student without a default; we can't do that (the database needs something to populate existing rows). 2.remember It is a Multitable inheritance.