You want to search on the author’s author_name field, not the id.
Quote.objects.filter(author__author_name=name)
With your current search, author__exact, Django expects name to be the id of the author, so gives an error because you is not an integer.