title: Django: UpdateView and ModelForm
body: <p>I'm having a weird issue when using a <code>ModelForm</code> as a <code>form_class</code> for <code>UpdateView</code>. </p>
  
  <p>First of all: When using the <code>UpdateView</code> without the <code>form_class</code> tag, everything works perfectly. However, when I try to use the <code>ModelForm</code> (because I want to add a MarkdownField) I get <code>&lt;mediwiki.views.MediwikiForm object at 0x7f990dfce080&gt;</code>displayed in my browser window. Just in plain text? </p>
  
  <pre><code>#template/mediwiki/create2.html:
  &lt;form action="" method="post"&gt;{% csrf_token %}
      {{ form }}
          &lt;input type="submit" value="Save" /&gt;
  &lt;/form&gt;
  
  #views.py:
  class EntryUpdate(UpdateView):
      model = Mediwiki
      slug_field = 'non_proprietary_name'
      template_name = "mediwiki/create2.html"
      form_class = MediwikiForm⋅
      #fields = '__all__' #this works...
  
  #forms.py
  class MediwikiForm(ModelForm):
  #    wiki_page_markdown = MarkdownxFormField()
      class Meta:
          model = Mediwiki⋅
          fields = ['non_proprietary_name', 'category', 'wiki_page_markdown']
  
  #models.py
  class Mediwiki(models.Model):
      non_proprietary_name = models.CharField(max_length = 100, unique = True)
      category = models.ManyToManyField(Category)
      wiki_page = models.TextField(blank = True)
      wiki_page_markdown = models.TextField(blank = True)
  
      def save(self):
          import markdown
          self.wiki_page = markdown.markdown(self.wiki_page_markdown)
          super(Mediwiki, self).save() # Call the "real" save() method.
  
      def get_absolute_url(self): # For redirect after UpdateView
          return reverse('entry', kwargs={'slug': self.non_proprietary_name})
  
      def __str__(self):
          return self.non_proprietary_name
  
  #urls.py
  url(r'^mediwiki/(?P&lt;slug&gt;\D+)/edit$', EntryUpdate.as_view(), name="update"),
  </code></pre>
  
  <p>Any idea what might cause this error? Any help will be much appreciated...</p>