How to use the same template for different query sets?
Posted
by knuckfubuck
on Stack Overflow
See other posts from Stack Overflow
or by knuckfubuck
Published on 2010-05-24T19:42:41Z
Indexed on
2010/05/24
19:51 UTC
Read the original article
Hit count: 233
django
|django-templates
I'm new to Django and setting up my first site. I have a Share model and a template called share_list.html that uses an object_list like this:
{% for object in object_list %}
I setup haystack using their tutorial and the search template looks like this:
{% for result in page.object_list %}
I would like to modify the search.html template to have an include of the share_list so I don't have to repeat myself. How can I make it use the same object_list?
© Stack Overflow or respective owner