title: python Django - filter + contain readable syntax
body: <p>i have created little search method. The problem that its hard to read it and ordering seems to be "out of shape". What is the best way to filter query in such manner?</p>
  
  <pre><code>@login_check
  def search(request):
      subdomain = request.get_host()                                                                   
      q = request.GET.get('q', None)
      queryset = (
                      SomeObject.objects.filter(title__icontains=q)
                          .filter(alias=Site.objects.get(domain=subdomain)) \
                          .order_by('created') |
                      SomeObject.objects.filter(description__icontains=q)
                          .filter(alias=Site.objects.get(domain=subdomain)) \
                          .order_by('created') |
                      SomeObject.objects.filter(comment__icontains=q)
                          .filter(alias=Site.objects.get(domain=subdomain)) \
                          .order_by('created') |
                      SomeObject.objects.filter(email__icontains=q)
                          .filter(alias=Site.objects.get(domain=subdomain)) \
                          .order_by('created')
                  )
      return object_list(queryset)
  </code></pre>
  
  <p>In this method object list forms what have to be given back so all i need to do is form a nice query. </p>
  
  <p>Main problem i see here is that filters could be applied after <code>contains</code>
   since its all the same. How can i achieve this? What is the best/nicest way to filter in such situation?</p>
  
  <p>I've tired to set filters after creating query but then it trows that i cannot apply filters to queries only to model lists. I may be wrong since i'm writing this error from memory, but one thing for sure that it trowed an error.</p>
  
  <p>P.S. I'm using Django 1.1 here and python 2.5.</p>