title: In Django, why does my form context variable disappear?
body: <p>Take this example form.</p>
  
  <pre><code>class TestForm(forms.Form):
  
      def __init__(self, *args, **kwargs):
          super(TestForm, self).__init__(*args, **kwargs)
  
          self.fields["test"] = forms.CharField()
  </code></pre>
  
  <p>In my view, I have this code:</p>
  
  <pre><code>test_form = TestForm()
  context['test_form'] = test_form
  </code></pre>
  
  <p>If I <code>print(test_form)</code>, it will appear just fine. Now, when I use <code>{% debug %}</code> in my template, this is the output: <code>{ ... 'test_form': , ... }</code>. In other words, the form disappears. I suspect it has something to do with adding a field after initialization, but I would really like to know <strong>why?</strong> Also how to get around the seeming limitation, if possible.</p>