title: django form queryset filter by current user
body: <p>I have made a search form like this where user can filter the news accroding to published date and the crawlers that they have selected previously.. Here is my form </p>
  
  <pre><code>class SearchForm(forms.Form):
  pub_date_from = forms.CharField(label="From",max_length=20)
  pub_date_to = forms.CharField(label="To",max_length=30)
  crawler = forms.ModelMultipleChoiceField(label="Crawler",queryset=Crawler.objects.filter(created_by=self.request.user)
  </code></pre>
  
  <p>Here I want the crawler to be shown only the user have selected previously..</p>
  
  <p>Here is my view..</p>
  
  <pre><code>class SingleNewsView(ListView):
  model = News
  form_class = SearchForm
  template_name = "single_news.html"
  
  # def post(self, request, **kwargs):
  #   print "request"
  #   form = SearchForm(request.user)
  
  
  
  def get(self, request, pk, **kwargs):
  
      #form = SearchForm(request.user)
      self.pk = pk
  
      self.pub_from = request.GET.get('pub_date_from',False)
      self.pub_to = request.GET.get('pub_date_to',False)
      self.crawlers = request.GET.get('crawler',False)
      self.format = request.GET.get('format',False)
      print self.format
  
      print self.crawlers
  
  
      return super(SingleNewsView,self).get(request,pk, **kwargs)
  
  
  
  def get_context_data(self, **kwargs):
  
      context = super(SingleNewsView,self).get_context_data(**kwargs)
      context["form"] = SearchForm
      if self.pub_from and self.pub_to and self.crawlers:
          qs = News.objects.filter(category_id=self.pk).filter(published_date__range=(self.pub_from,self.pub_to), crawler=self.crawlers)
      else:
          qs = News.objects.filter(category_id=self.pk)
  
      context["something"] = qs
      self.request.session['something_pks'] = [ i.details for i in qs ]
  
      return context
  </code></pre>
  
  <p>How can I get the current user in form and filter according to current user.. Need help</p>