title: Function mixing up values of different model (within similar named fields)
body: <p>Here is my search function</p>
  <pre><code>def search(request):
      query = request.GET['query']
      allPoststit = List.objects.filter(title__icontains=query)
      allPostscont = List.objects.filter(content__icontains=query)
      allPostsl = allPoststit.union(allPostscont)
      allPoststitm = MusicList.objects.filter(title__icontains=query)
      allPostscontm = MusicList.objects.filter(content__icontains=query)
      allPostsm = allPoststitm.union(allPostscontm)
      allPoststitb = BookList.objects.filter(title__icontains=query)
      allPostscontb = BookList.objects.filter(content__icontains=query)
      allPostsb = allPoststitb.union(allPostscontb)
      allPosts2 = allPostsl.union(allPostsm)
      allPosts = allPosts2.union(allPostsb)
      params = {'allPosts' : allPosts, 'query':query}
      return render(request, 'app/search.html', params)
  </code></pre>
  <p>when from template im calling</p>
  <pre><code>{% for tag in i.genre.all %}
  &lt;div class=&quot;Genre&quot;&gt;
  &lt;small&gt;{{ tag }}&lt;/small&gt;
  &lt;/div&gt;
  {% empty %}
              No tags!
  {% endfor %}
  </code></pre>
  <p>Its mixing up values within different models or returning empty. Any idea why is this happening?</p>