title: Using Django CreateView without Form to Create Object
body: <p>I am using classed based views with django 1.3 and am trying to figure out how to create an object without using the form. I do not need any user input to create the object but I am still getting an error message that the template is missing. Below is my current view where I have tried to subclass the form_valid method but its not working. Any help would be appreciated.</p>
  
  <pre><code>class ReviewerCreateView(CreateView):
      model = Reviewer
  
      def form_valid(self, form):
          self.object = form.save(commit=False)
          self.object.user = self.request.user
          self.object.role = 2
          self.object.save()
          return HttpResponseRedirect(self.get_success_url())
  </code></pre>