title: How can I get all the objects in a Django model that have a specific value for a ForeignKey field?
body: <p>I have a Model with a Foreign Key of "Parent"</p>
  
  <pre><code>class Item(models.Model):
  parent = models.ForeignKey(Parent)
  </code></pre>
  
  <p>This is the FK model </p>
  
  <pre><code>class Parent(models.Model):
  name = models.CharField(blank=True, max_length=100)
  
  def __unicode__(self):
      return str(self.name)
  </code></pre>
  
  <p>I am trying to run a query that gets all Items with a parent of "xyz" I get nothing</p>
  
  <pre><code>Item.objects.filter(parent="xyz")
  </code></pre>
  
  <p>When I try:</p>
  
  <pre><code>Item.objects.filter(parent.name="xyz")
  </code></pre>
  
  <p>Or:</p>
  
  <pre><code>Item.objects.filter(str(parent)="xyz")
  </code></pre>
  
  <p>I get an error:</p>
  
  <pre><code>SyntaxError: keyword can't be an expression
  </code></pre>
  
  <p>What is the proper way to do this?</p>