adding raw note iframe view, route and template
[oweals/karmaworld.git] / karmaworld / apps / notes / views.py
1 #!/usr/bin/env python
2 # -*- coding:utf8 -*-
3 # Copyright (C) 2012  FinalsClub Foundation
4
5 from django.views.generic import DetailView
6 from karmaworld.apps.notes.models import Note
7
8 class NoteDetailView(DetailView):
9     """ Class-based view for the note html page """
10     # name passed to template
11     context_object_name = u"note"
12     model = Note
13
14 class RawNoteDetailView(DetailView):
15     """ Class-based view for the raw note html for iframes """
16     template_name = u'notes/note_raw.html'
17     context_object_name = u"note"
18     model = Note