comparison gpp/weblinks/views.py @ 20:c0d0779b266f

Created a template tag for the latest weblinks: latest_weblinks. This necessitated adding a get_absolute_url function for the Link model along with a new view for it.
author Brian Neal <bgneal@gmail.com>
date Sun, 19 Apr 2009 20:41:37 +0000
parents dbd703f7d63a
children 884839ddbfde
comparison
equal deleted inserted replaced
19:aa2b41c5212b 20:c0d0779b266f
222 'query': query_text, 222 'query': query_text,
223 'page': the_page, 223 'page': the_page,
224 'search_form': SearchForm(), 224 'search_form': SearchForm(),
225 }, 225 },
226 context_instance = RequestContext(request)) 226 context_instance = RequestContext(request))
227
228 #######################################################################
229
230 def link_detail(request, id):
231 link = get_object_or_404(Link, pk=id)
232 return render_to_response('weblinks/link_detail.html', {
233 'link': link,
234 'search_form': SearchForm(),
235 },
236 context_instance = RequestContext(request))