Re: What's the right pattern to re-use common view code?

2013-01-22 Thread andrew jackson
t; > You could do something like: {% include "book_list.html" with > books=auth.book_set.all %} > > _Nik > > On 1/22/2013 8:03 AM, andrew jackson wrote: > > I have an object that shows up in lots of different parts of the system, > say a Book. > > I w

What's the right pattern to re-use common view code?

2013-01-22 Thread andrew jackson
I have an object that shows up in lots of different parts of the system, say a Book. I want to display a list view of Book objects in many different places, e.g., When looking at an Author's detail page, I want to see a list of recent books they've written when looking at a publisher page,