Skip to content

Instantly share code, notes, and snippets.

@kyle-eshares
Created October 17, 2016 17:13
Show Gist options
  • Save kyle-eshares/433b520a4abcd47253a78e81bb7be437 to your computer and use it in GitHub Desktop.
Save kyle-eshares/433b520a4abcd47253a78e81bb7be437 to your computer and use it in GitHub Desktop.
def author_name_length(book):
return len(book.author.name)
def process_author_books(author):
for book in author.books.all():
do_stuff(book)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment