title: Django filter on generic relationship
body: <p>I have a model below which points to a generic relationship. This can either be a contact object or a customer object. </p>
  
  <pre><code>class Unsubscribe(models.Model):
      """
      Notes:
      See: http://www.screamingatmyscreen.com/2012/6/django-and-generic-relations/
      """
      content_type = models.ForeignKey(ContentType, help_text="Represents the name of the model")
      object_id = models.PositiveIntegerField(help_text="stores the object id")
      content_object = generic.GenericForeignKey('content_type', 'object_id')
  
      reason = models.CharField(max_length=60)
  
      request_made = models.DateTimeField(auto_now_add=True,
                                     help_text="Shows when object was created.")
  
  
      class Meta:
          ordering = ['-request_made']
  </code></pre>
  
  <p>I would like to list out all unsubscribed both unsubscribe customers and contacts only for the user.</p>
  
  <pre><code> queryset = Unsubscribe.objects.filter()
  </code></pre>
  
  <p>Above gives me all unsubscribe customers and contacts for any users normally I would solve this by doing....</p>
  
  <pre><code>queryset = Unsubscribe.objects.filter(user=request.user)
  </code></pre>
  
  <p>However, Unsubscribe object does not have a user, but both  customers and contacts do.</p>
  
  <p>So how can I filter on the generic relationship?</p>