Now XSLT file is always searched for in a directory in which book2htm.py resides.
[wolnelektury.git] / catalogue / views.py
index 0166133..ed0436e 100644 (file)
@@ -39,6 +39,7 @@ def search(request):
         print "%r, %r" % (query, tags)
         try:
             book = models.Book.objects.get(title=query)
+            return HttpResponseRedirect(book.get_absolute_url())
         except models.Book.DoesNotExist:
             return HttpResponseRedirect(reverse('catalogue.views.main_page'))
     else: