When creating a form, I wish to use one field on the model as a label to go with another field that I'm updating.
I've overridden the BaseModelFormSet with a new _init__ method, like this:
class BaseMyFormSet(BaseModelFormSet):
def __init__(self, *args, **kwargs):
super(BaseMyFormSet, self).__init__(*args, **kwargs)
for form in self.forms:
form.fields['value'].label = ???
How do I reference the other field in the model so that I can use it as the label value?
(Alternatively, if there's a better way to override the label in the way I need, that would be very helpful as well.)
Thanks.