I have many classes in models.py
something like:
class SomeClass1(BaseModel):
question = models.ForeignKey(Question)
image = models.ForeignKey(Image)
class SomeClass2(BaseModel):
question = models.ForeignKey(Question)
option_text = models.TextField()
Now, I want to add app_label = 'my_app_label1'
to all of these classes, something like this:
class SomeClass1(BaseModel):
question = models.ForeignKey(Question)
image = models.ForeignKey(Image)
class Meta:
app_label = 'my_app_label1'
But since there are many classes, so instead of adding app_label = 'my_app_label1'
to all the classes, I'm adding app_label = 'my_app_label1'
to the BaseModel, like this:
class BaseModel(models.Model):
"""
For future abstraction.
"""
class Meta:
app_label = 'ques_app_data'
After which I'm getting this error:
myapp.SomeClass1.basemodel_ptr: (fields.E300) Field defines a relation with model 'BaseModel', which is either not installed, or is abstract.
Can anyone please explain how to solve this ?