Is this even possible?
So let's say that I have two forms, one inherits from the other because they have similar fields with the same validation. But the only difference is they have different help text. How could I have two different help text on these forms?
Try this:
class A(Form):
f = CharField(help_text='sth')
class B(A):
def __init__(self, *args, **kwargs):
super(B, self).__init__(*args, **kwargs)
self.fields['f'].help_text = 'changed'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With