projects
/
oweals
/
karmaworld.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9938b3
)
convert PDFView from TemplateView to DetailView
author
Seth Woodworth
<seth@sethish.com>
Tue, 4 Jun 2013 02:59:28 +0000
(22:59 -0400)
committer
Seth Woodworth
<seth@sethish.com>
Tue, 4 Jun 2013 02:59:28 +0000
(22:59 -0400)
karmaworld/apps/notes/views.py
patch
|
blob
|
history
diff --git
a/karmaworld/apps/notes/views.py
b/karmaworld/apps/notes/views.py
index 79b45d5dd4be367921d46bd93d12283123bf2be1..7779f51dbc5cd9ab9a64715008860e48a1197533 100644
(file)
--- a/
karmaworld/apps/notes/views.py
+++ b/
karmaworld/apps/notes/views.py
@@
-94,7
+94,9
@@
class RawNoteDetailView(DetailView):
context_object_name = u"note"
model = Note
-class PDFView(TemplateView):
- """ A testing view to render a PDF """
+
+class PDFView(DetailView):
+ """ Render PDF files in an iframe based on ID"""
template_name = u'partial/pdfembed.html'
+ model = Note