title: How to show form in UpdateView on Django?
body: <p>I want to make Update page which change User of model information.
  My program is berow.</p>
  
  <pre><code>#urls.py
  
  url(r'^user_edit/(?P&lt;pk&gt;\d+)$', views.UserEdit.as_view(), name='user_edit'),
  
  
  
  #models.py
  
  from datetime import datetime
  from django.db import models
  from django.utils import timezone
  from django.contrib.auth.models import User    
  
  class User(User):
      name = models.CharField(max_length=200, default='Null')
      post = models.CharField(max_length=9, default='Null')
      bank = models.CharField(max_length=200, default='Null')
      mail = models.CharField(max_length=200, default='Null')
      address1 = models.CharField(max_length=200, default='Null')
      address2 = models.CharField(max_length=200, default='Null')
      address3 = models.CharField(max_length=200, default='Null')
      tel = models.CharField(max_length=15, default='Null')
      fax = models.CharField(max_length=15, default='Null')
  
  
  #views.py
  from .forms import InvoiceForm, UserForm, CustomerForm ,UserSignupForm
  class UserEdit(generic.UpdateView):
      model = User
      form_class = UserForm
      template_name = 'invo/user.html'
      success_url = "invo/user_info"
  
      # get current user object
      def get_object(self, queryset=None):
          return self.request.user
  
  #forms.py
  
  from django import forms
  from .models import Invoice, User, Customer
  
  class UserForm(forms.ModelForm):
      class Meta:
          model = User
          fields = ["username", "email",'password','first_name', 'last_name', ]
  
  #user.html [Template]
  
  {% extends 'invo/base.html' %}
  
  {% block content %}
  
  
  &lt;div class="gtco-section gtco-testimonial gtco-gray"&gt;
      &lt;div class="gtco-container"&gt;
          &lt;div class="row"&gt;
              &lt;div class="col-md-8 col-md-offset-2 gtco-heading text-center"&gt;
                  &lt;h2&gt;Update&lt;/h2&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="row"&gt;
              &lt;h3&gt;User Profile&lt;/h3&gt;
              &lt;div class="row"&gt;
                  {% if messages %}
                  &lt;ul class="messages"&gt;
                      {% for message in messages %}
                      &lt;li
                      {% if message.tags %} class="{{ message.tags }}"{% endif %}&gt;{{ message }}&lt;/li&gt;
                      {% endfor %}
                  &lt;/ul&gt;
                  {% endif %}
                  &lt;form method="post"&gt;
                      {% csrf_token %}
                      &lt;table&gt;
                          {{ form.as_p }}
                      &lt;/table&gt;
                      &lt;input type="submit" value="change"&gt;
                  &lt;/form&gt;
  
  
              &lt;/div&gt;
  
  
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;!-- END .gtco-services --&gt;
  
  
  {% endblock%}
  </code></pre>
  
  <p>My page is like this.It doesn't have forms
  <a href="https://i.stack.imgur.com/v77ul.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/v77ul.png" alt="enter image description here"></a>
  This is html source code.There is Form.But it's hidden!! What is problem? Didn't get form information...?</p>
  
  <pre><code>#source
  
      &lt;h3&gt;User Profile&lt;/h3&gt;
              &lt;div class="row"&gt;
  
                  &lt;form method="post"&gt;
                      &lt;input type='hidden' name='csrfmiddlewaretoken' value='pLoy7OtBOunF70avjFRTt1wlaIwTIArfe8wkNmbVZOslAu6G4hiFoC8oRWVhcbID' /&gt;
                      &lt;table&gt;
  
                      &lt;/table&gt;
                      &lt;input type="submit" value="change"&gt;
                  &lt;/form&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>I made another Update Form same way.But User model cannot show form.
  If you know about this problem.Please Help me.</p>