fix variable name
authorMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Mon, 12 Dec 2011 08:39:21 +0000 (09:39 +0100)
committerMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Mon, 12 Dec 2011 08:39:21 +0000 (09:39 +0100)
apps/catalogue/views.py

index 0722f39..235a17d 100644 (file)
@@ -789,7 +789,7 @@ def download_zip(request, format, book=None):
 
 
 def download_custom_pdf(request, book_fileid):
-    kwargs = models.Book.split_urlid(book)
+    kwargs = models.Book.split_fileid(book_fileid)
     if kwargs is None:
         raise Http404
     book = get_object_or_404(models.Book, **kwargs)