New design for book-detail template (downloading books etc), part2
[wolnelektury.git] / apps / infopages / views.py
1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 #
5 from django.shortcuts import render_to_response
6 from django.template import RequestContext
7
8 from catalogue.forms import SearchForm
9 from infopages.models import InfoPage
10
11 def infopage(request, slug):
12     form = SearchForm()
13     object = InfoPage.objects.get(slug=slug)
14
15     return render_to_response('info/base.html', locals(),
16                 context_instance=RequestContext(request))