title: Basic form processing with cookiecutter django
body: <p>I have installed cookiecutter django and have gotten everything up and running.  I have encountered a problem where an update view is not updating the model.  It just keeps redirecting the flow to itself.</p>
  
  <p>dream/models.py</p>
  
  <pre><code>class Dream(models.Model):
  
      title = models.CharField(_('dream title'), max_length=60)
      slug = models.SlugField(editable=False)
      writeup = models.TextField(default="Boilerplate")
  </code></pre>
  
  <p>The slug field is created from the title on object save.</p>
  
  <p>dreams/urls.py</p>
  
  <pre><code>url(
      regex=r'^$',
      view=views.DreamListView.as_view(),
      name='list'
  ),
  
  url(
      regex=r'^(?P&lt;slug&gt;[\w.@+-]+)/$',
      view=views.DreamDetailView.as_view(),
      name='detail'
  ),
  
  url(
      regex=r'^(?P&lt;slug&gt;[\w.@+-]+)/update/$',
      view=views.DreamUpdateView.as_view(),
      name='update'
  ),
  </code></pre>
  
  <p>dreams/views.py</p>
  
  <pre><code>class DreamListView(ListView):
      model = Dream
  
      queryset = Dream.objects.all().filter(in_production=True)
      # These next two lines tell the view to index lookups by slug
      slug_field = 'slug'
      slug_url_kwarg = 'slug'
  
  class DreamDetailView(DetailView):
      model = Dream
      # These next two lines tell the view to index lookups by slug
      slug_field = 'slug'
      slug_url_kwarg = 'slug'
  
  class DreamUpdateView(UpdateView):
      model = Dream
  
      fields =['title', 'writeup', ]
  
      def get_success_url(self):
          return reverse('dreams:detail', kwargs={'slug': self.get_object().slug})
  
      slug_field = 'slug'
      slug_url_kwarg = 'slug'
  </code></pre>
  
  <p>template of update view</p>
  
  <pre><code>{% extends "base.html" %}
  {% load static %}{% load i18n %}
  {% block title %}Edit Dream - {{ dream.title }}{% endblock %}
  
  {% block content %}
  
  
  &lt;form action="" method=”post”&gt;
    {% csrf_token %}
    {{ form.as_p }}
    &lt;div class="control-group"&gt;
            &lt;div class="controls"&gt;
              &lt;button type="submit" class="btn"&gt;Update&lt;/button&gt;
            &lt;/div&gt;
    &lt;/div&gt;
  &lt;/form&gt;
  
  
  {% endblock %}
  </code></pre>
  
  <p>I can access the form via localhost:8000//update</p>
  
  <p>When I change a value and hit Update, the form is redisplayed with the original data.  It does not redirect to the detail page.  I assume that the update is failing.  Is there a way to see what is making it fail?</p>
  
  <p>Thanks.</p>