I have two model classes they like below:
from django.db import models
from django.urls import reverse
class Place(models.Model):
address = models.CharField(max_length=80)
class Author(Place):
name = models.CharField(max_length=50)
But when i want to execute makemigartions django shows me error below:
You are trying to add a non-nullable field 'place_ptr' to author without a default; we can't do that (the database needs something to populate existing rows).
Please select a fix:
1) Provide a one-off default now (will be set on all existing rows with a null value for this column)
2) Quit, and let me add a default in models.py
Select an option:
I have some data in Author table but i dont want to remove that data.
is there anyone could help me please ?