context['catalogs'] = Catalog.objects.all()\r
return render_to_response('libraries/main_view.html', context_instance=context)\r
\r
context['catalogs'] = Catalog.objects.all()\r
return render_to_response('libraries/main_view.html', context_instance=context)\r
\r
def catalog_view(request, slug):\r
context = RequestContext(request)\r
context['catalog'] = get_object_or_404(Catalog.objects.filter(slug=slug).select_related())\r
return render_to_response('libraries/catalog_view.html', context_instance=context)\r
def catalog_view(request, slug):\r
context = RequestContext(request)\r
context['catalog'] = get_object_or_404(Catalog.objects.filter(slug=slug).select_related())\r
return render_to_response('libraries/catalog_view.html', context_instance=context)\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