I've got two models in a Django application that have exactly the same fields, but different types of information is stored in each.
For example:
class A(models.Model)
field_a = models.CharField(primary_key = True, max_length = 24)
field_b = models.CharField(primary_key = True, max_length = 24)
class B(models.Model)
field_a = models.CharField(primary_key = True, max_length = 24)
field_b = models.CharField(primary_key = True, max_length = 24)
It seems like it would make sense to contain these in an abstract model and have these two classes as sub-classes. I was assuming that I could simply do this, without needing to make DB modifications, but Django isn't able to find the fields of my models any longer.
Could someone offer advice?