from django.shortcuts import render_to_response, get_object_or_404\r
from django.template import RequestContext, Template, TemplateSyntaxError\r
\r
from django.shortcuts import render_to_response, get_object_or_404\r
from django.template import RequestContext, Template, TemplateSyntaxError\r
\r
def library_view(request, catalog_slug, slug):\r
context = RequestContext(request)\r
context['library'] = get_object_or_404(Library.objects.filter(slug = slug).filter(catalog__slug = catalog_slug))\r
def library_view(request, catalog_slug, slug):\r
context = RequestContext(request)\r
context['library'] = get_object_or_404(Library.objects.filter(slug = slug).filter(catalog__slug = catalog_slug))\r
- return render_to_response('libraries/library_view.html', context_instance = context)
\ No newline at end of file
+ return render_to_response('libraries/library_view.html', context_instance = context)\r