Changed stanzas in drama lines to have margin 0 again.
[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)
         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:
         except models.Book.DoesNotExist:
             return HttpResponseRedirect(reverse('catalogue.views.main_page'))
     else: