def catalogue_csv(path): books_by_author, orphans, books_by_parent = Book.book_list() render_to_csv(path, 'reporting/catalogue.csv', { 'books_by_author': books_by_author, 'orphans': orphans, 'books_by_parent': books_by_parent, })
def catalogue_csv(path): books_by_author, orphans, books_by_parent = Book.book_list() render_to_csv( path, 'reporting/catalogue.csv', { 'books_by_author': books_by_author, 'orphans': orphans, 'books_by_parent': books_by_parent, })
def catalogue_csv(path): books_by_author, orphans, books_by_parent = Book.book_list() render_to_csv(path, 'reporting/catalogue.csv', locals())