From 36d837fbdbb5cef0a699fcff07131c9846342b9d Mon Sep 17 00:00:00 2001 From: Seth Woodworth Date: Mon, 1 Jul 2013 14:06:07 -0400 Subject: [PATCH] oops, fix generating conditional is_pdf and is_ppt in raw PDFView class --- karmaworld/apps/notes/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/karmaworld/apps/notes/views.py b/karmaworld/apps/notes/views.py index e9bffc1..d4037e6 100644 --- a/karmaworld/apps/notes/views.py +++ b/karmaworld/apps/notes/views.py @@ -125,10 +125,10 @@ class PDFView(DetailView): """ Generate a path to the pdf file associated with this note by generating a path to the MEDIA_URL by hand """ - if is_ppt: + if is_ppt(self): kwargs['pdf_path'] = "{0}{1}".format(settings.MEDIA_URL, os.path.basename(self.object.pdf_file.name)) - elif is_pdf: + elif is_pdf(self): kwargs['pdf_path'] = "{0}{1}".format(settings.MEDIA_URL, os.path.basename(self.object.note_file.name)) -- 2.25.1