So I have my TagStatus model. I\'m trying to make a ModelForm for it. However, my form requires that the hidden input be populated with the {{ tag.name }}. I\'ve been lookin
class TagStatusForm(forms.ModelForm):
class Meta:
model = TagStatus
def __init__(self, *args, **kwargs):
super(TagStatusForm, self).__init__(*args, **kwargs)
for field in self.fields:
self.fields[field].widget = forms.HiddenInput()