I changed my models.py file and when running migrate
I get this error. The property is a OneToOneField(). I have tried adding null=True
but that doesn't seem to fix it. It is also weird that even when I comment out the property and run makemigrations
followed by migrate
, I still get that exact same error. Is there a way to fix this? My model looks like this:
class Estimator(Employee):
avg_estimate = models.IntegerField()
class Job(models.Model):
created = models.DateTimeField(auto_now_add=True)
estimator = models.OneToOneField(Estimator, null=True)
address = models.CharField(max_length=100)
completed = models.BooleanField(default=False)