title: filter the data from database using django filter
body: <p>views.py</p>
  
  <pre><code>def search(request):
      reportlist = []
      loc_id = request.POST.get('location')
      if loc_id:
          location_list = ReportLocation.objects.filter(title=loc_id)
          for locaton in location_list:                       
              reportlist.append(locaton.report)
  </code></pre>
  
  <p>forms.py</p>
  
  <pre><code>class SearchFilterForm(Form):
      location = forms.ChoiceField(widget=forms.Select(), choices='',required=False, initial='Your name')
  
      def __init__(self,user_id, *args, **kwargs):
          super(SearchFilterForm, self).__init__(*args, **kwargs)
          self.fields['location'] = forms.ChoiceField(choices=[('','All Location types')]+[(loc.id, str(loc.title)) for loc in Location.objects.filter(user=user_id).exclude(parent_location_id=None)])
  </code></pre>
  
  <p>models.py</p>
  
  <pre><code>class ReportLocation(models.Model):   
      report = models.ForeignKey(Report)    
      title = models.CharField('Location', max_length=200)
  </code></pre>
  
  <p>How to filter the title field in ReportLocation field with the selected choice.I tried with above filter query in views.py,but it is not showing any filtered data.Need help</p>