Let’s say I have a model called MySuper:
class MySuper(models.Model):
some_attr = models.CharField(max_length=128)
And I have two subclasses that inherit from this model, called MySub1 and MySub2.
I need to add a help_text to some_attr, but must be different in each subclass. Is there any way to do this?
class MySub1(MySuper):
# ...
# add help_text='Help text of some_attr inside MySub1'
class MySub2(MySuper):
# ...
# add help_text='Help text of some_attr inside MySub2'
Another way to achieve this without having to fully redefine the field would be: