I have class A with instances in production, and I want to add a base class B, currently:
class A:
name = models.TextField(max_length=1000)
phone = models.TextField(max_length=30)
and what I need is:
class B:
name = models.TextField(max_length=1000)
class A(B):
phone = models.TextField(max_length=30)
The problem is that when doing this, when I do the makemigrations, it asks me for a value for b_ptr (which is not clear to me, and if I put null or any number does not work)
"You are trying to add to a non-nullable field b_ptr 'to to without a default; we can not do that (the database needs something to populate existing rows) "
I appreciate if you can give me a hand.