title: CreateView not creating any object
body: <p>This is my view:</p>
  
  <pre><code>class ObjectCreateView(CreateView):
  
      template_name = 'dashboard/add.html'
      success_url = '/'
      form_class = ObjectCreateForm
  </code></pre>
  
  <p>and this is how the view is called:</p>
  
  <pre><code>&lt;a href="{% url 'dashboard:add' request.resolver_match.kwargs.slug %}"&gt;
    new
  &lt;/a&gt;
  </code></pre>
  
  <p>And the urls.py:</p>
  
  <pre><code>    path('&lt;slug:slug&gt;/object/new', views.ObjectCreateView.as_view(), name='add'),
  
  </code></pre>
  
  <p>"slug" belongs to another object that is a foreign key in my object "object".</p>
  
  <p>Is using slug the problem here ? </p>