title: django forms.py widgets cannot render in template (UpdateView)
body: <p>I got the a problem, widgets in forms.py cannot render in template.
  I want to create edit form in my application and i try used widgets in forms.py, but the widgets cannot render in template.
  Any solutions ?</p>
  <p>Form in html render like this, (class, placeholder, etc not rendering) :
  <a href="https://i.stack.imgur.com/2HnVZ.png" rel="nofollow noreferrer">IMAGE FORM EDIT</a></p>
  <p><strong>forms.py</strong></p>
  <pre><code>class UserUsulanUpdatePenelitianForm(ModelForm):
  class Meta:
      model           = UserUsulan
      exclude         = ['status_usulan' ,'jumlah_dana_disetujui', 'keterangan_operator', 'com_reviewer_1', 'com_reviewer_2' ]
      widget = {
          'anggota'                   : Select2MultipleWidget({'class' : 'form-control select2-multi', 'multiple' : 'multiple', 'name' : 'tags' }),
          'tmt_awal'                  : forms.TextInput({'class' : 'form-control',  'placeholder' : 'TMT Awal', 'type' : 'date'}),
          'tmt_akhir'                 : forms.TextInput({'class' : 'form-control',  'placeholder' : 'TMT Akhir', 'type' : 'date'}),
          'judul_penelitian'          : forms.Textarea({'class' : 'form-control', 'placeholder' : 'Judul Penelitian', 'rows':3, 'cols':20}),
      }
  </code></pre>
  <p><strong>views.py</strong></p>
  <pre><code>class UserUsulanPenelitianUpdateView(LoginRequiredMixin, UpdateView):
  template_name       = 'dashboard/usulan-penelitian-edit.html'
  form_class          = UserUsulanUpdatePenelitianForm
  queryset            = UserUsulan.objects.all()
  context_object_name = 'listUsulanPenelitian'
  
  def form_valid(self, form):
      messages.success(self.request, 'Usulan Penelitian Telah Diedit!')
      return super().form_valid(form)
  
  def get_success_url(self):
      return reverse('dashboard:usulan-penelitian')
  </code></pre>
  <p><strong>usulan-penelitian-edit.html</strong></p>
  <pre><code>&lt;form method=&quot;post&quot;&gt;
                  {% csrf_token%}
                  {{form.errors}}
                  &lt;div class=&quot;inputbox mt-3&quot;&gt; {{form.ketua}} &lt;span&gt;Ketua Penelitian&lt;/span&gt; &lt;/div&gt;
                  &lt;div class=&quot;row&quot;&gt;
                      &lt;div class=&quot;col-md-6&quot;&gt;
                          &lt;div class=&quot;inputbox mt-3 mr-2&quot;&gt; {{form.anggota}} &lt;i class=&quot;fa fa-users&quot;&gt;&lt;/i&gt; &lt;span&gt;Anggota&lt;/span&gt; &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class=&quot;col-md-6&quot;&gt;
                          &lt;div class=&quot;d-flex flex-row&quot;&gt;
                              &lt;div class=&quot;inputbox mt-3 mr-2&quot;&gt; {{form.tmt_awal}} &lt;span&gt;TMT Awal&lt;/span&gt; &lt;/div&gt;
                              &lt;div class=&quot;inputbox mt-3 mr-2&quot;&gt; {{form.tmt_akhir}} &lt;span&gt;TMT Akhir&lt;/span&gt; &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class=&quot;mt-4 mb-4&quot;&gt;
                      &lt;h6 class=&quot;text-uppercase&quot;&gt;Detail Penelitian&lt;/h6&gt;
                      &lt;div class=&quot;row mt-3&quot;&gt;
                        &lt;div class=&quot;inputbox mt-3&quot;&gt; {{form.judul_penelitian}} &lt;span&gt;Judul Penelitian&lt;/span&gt; &lt;/div&gt;
                          &lt;div class=&quot;col-md-4&quot;&gt;
                              &lt;div class=&quot;inputbox mt-3 mr-2&quot;&gt; {{form.tahun}} &lt;span&gt;Tahun&lt;/span&gt; &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;div class=&quot;col-md-4&quot;&gt;
                              &lt;div class=&quot;inputbox mt-3 mr-2&quot;&gt; {{form.jenis_penelitian}} &lt;span&gt;Jenis&lt;/span&gt; &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;div class=&quot;col-md-4&quot;&gt;
                              &lt;div class=&quot;inputbox mt-3 mr-2&quot;&gt; {{form.bidang_penelitian}} &lt;span&gt;Bidang&lt;/span&gt; &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class=&quot;row mt-2&quot;&gt;
                          &lt;div class=&quot;col-md-6&quot;&gt;
                              &lt;div class=&quot;inputbox mt-3 mr-2&quot;&gt; {{form.skema_penelitian}} &lt;span&gt;Skema&lt;/span&gt; &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;div class=&quot;col-md-6&quot;&gt;
                              &lt;div class=&quot;inputbox mt-3 mr-2&quot;&gt; {{form.target_luaran}} &lt;span&gt;Target&lt;/span&gt; &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class=&quot;row mt-2&quot;&gt;
                          &lt;div class=&quot;col-md-12&quot;&gt;
                              &lt;div class=&quot;inputbox mt-3 mr-2&quot;&gt; {{form.tujuan_sosial_ekonomi}} &lt;span&gt;Tujuan Sosial Ekonomi&lt;/span&gt; &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class=&quot;mt-4 mb-4&quot;&gt;
                      &lt;h6 class=&quot;text-uppercase&quot;&gt;Dana Penelitian&lt;/h6&gt;
                      &lt;div class=&quot;row mt-3&quot;&gt;
                          &lt;div class=&quot;col-md-6&quot;&gt;
                              &lt;div class=&quot;inputbox mt-3 mr-2&quot;&gt; {{form.jumlah_dana_usulan}} &lt;span&gt;Dana Usulan&lt;/span&gt; &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;input type=&quot;submit&quot; name=&quot;simpan&quot; id=&quot;simpan&quot; class=&quot;btn btn-primary btn-user btn-block&quot; value=&quot;Simpan&quot;/&gt;
              &lt;/form&gt;
  </code></pre>