title: Django: invalid literal for int() with base 10
body: <p>I am new to Django and trying to pass an author's name to a view and filter out quote objects based on the author's name. here are the codes:</p>
  
  <p>models.py</p>
  
  <pre><code>class Author(models.Model):
      author_name = models.CharField(max_length=50, default='unknown')
      author_info = models.TextField(max_length=1000)
  
  
  class Quote(models.Model):
      author = models.ForeignKey(Author)
      quote = models.TextField(max_length=500)
      category= models.ForeignKey(Category)
      pub_date = models.DateTimeField('date published')
  </code></pre>
  
  <p>urls.py:</p>
  
  <pre><code>url(r'^quotes/(?P&lt;name&gt;\w+)/$', 'quotes.views.quotesbyauthor'),
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>def quotesbyauthor(request, name):
      aquotelist = Quote.objects.filter(author__exact = name)
      return render_to_response(quotes_by_author.html, {'aquotelist': aquotelist })
  </code></pre>
  
  <p>However I get this error when I try to get <a href="http://127.0.0.1:8000/quotes/you/" rel="noreferrer">http://127.0.0.1:8000/quotes/you/</a>
  ('you' is a test author object, already created)</p>
  
  <pre><code>ValueError at /quotes/you/
  
  invalid literal for int() with base 10: 'you'
  
  Request Method:     GET
  Request URL:    http://127.0.0.1:8000/quotes/you/
  Django Version:     1.3.1
  Exception Type:     ValueError
  Exception Value:    
  
  invalid literal for int() with base 10: 'you'
  
  Exception Location:     /home/qliq/djenv/lib/python2.6/site-packages/django/db/models/fields/__init__.py in get_prep_value, line 479
  Python Executable:  /home/qliq/djenv/bin/python
  Python Version:     2.6.6
  Python Path:    
  
  ['/home/qliq/djenv/quoteapp',
   '/home/qliq/djenv/lib/python2.6/site-packages/distribute-0.6.10-py2.6.egg',
   '/home/qliq/djenv/lib/python2.6/site-packages/pip-0.7.2-py2.6.egg',
   '/home/qliq/djenv/lib/python2.6',
   '/home/qliq/djenv/lib/python2.6/plat-linux2',
   '/home/qliq/djenv/lib/python2.6/lib-tk',
   '/home/qliq/djenv/lib/python2.6/lib-old',
   '/home/qliq/djenv/lib/python2.6/lib-dynload',
   '/usr/lib/python2.6',
   '/usr/lib/python2.6/plat-linux2',
   '/usr/lib/python2.6/lib-tk',
   '/home/qliq/djenv/lib/python2.6/site-packages']
  </code></pre>
  
  <p>I appreciate your help to resolve this. </p>