title: User current user on new Django class views forms
body: <p>I am using the django 1.3 on trunk, and start learning about class views.</p>
  
  <p>I had this:</p>
  
  <pre><code>class Project(models.Model):
      title = models.CharField(max_length=90)
      slug = models.CharField(max_length=90)
      description = models.TextField()
      owner = models.ForeignKey(User)
  
  class ProjectForm(ModelForm):
  
      class Meta:
          model = Project
          exclude = ('owner',)
          widgets = {
              'description': Textarea(attrs={'cols': 40, 'rows': 20}),
          }
  
  class ProjectCreateView(CreateView):
      model = Project
      form_class = ProjectForm
  
      def get(self, request, *args, **kwargs):
          return super(ProjectCreateView, self).get(request, *args, **kwargs)
  
      def post(self, request, *args, **kwargs):
          return super(ProjectCreateView, self).post(request, *args, **kwargs)
  </code></pre>
  
  <p>I am trying, to get a form using model forms from django excluding the owner field, to get the field value after with the request.user property.</p>
  
  <p>The form as it is, works. But how can make sure the ModelForm use request.user for the Project.owner field?</p>
  
  <p>My first guess, was to override get_form_kwargs method from the view</p>
  
  <pre><code>class ProjectCreateView(CreateView):
  
      # .....
  
      def get_form_kwargs(self, **kwargs):
          self.initial['owner': self.request.user})
          kwargs = super(ProjectCreateView, self).get_form_kwargs(**kwargs)
          return kwargs
  </code></pre>
  
  <p>But seem to have no effect on the data used by the model form </p>