You can do something like this:
def extra_object_detail(...):
context = {"next":nextObj, "previous":previousObj}
return object_detail(..., extra_context=context)
The generic view adds the extra_context parameter to the context so you
can access it in your template.
Chris
--~--~---
Ok, so I'm new and I'm having a problem with generic views and I can't
seem to find any documentation on this. I have the detail_list view
working as I want it, pulling everything in the database up and
rendering it out as I want.
When you go to view the detail of one object, tho, I can't seem to
2 matches
Mail list logo