remove debugging from default notes view
This commit is contained in:
@@ -1,20 +1,16 @@
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from mitxmako.shortcuts import render_to_response
|
||||
from courseware.courses import get_course_with_access
|
||||
from notes.models import Note
|
||||
import json
|
||||
import logging
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
@login_required
|
||||
def notes(request, course_id):
|
||||
''' Displays a student's notes in a course. '''
|
||||
course = get_course_with_access(request.user, course_id, 'load')
|
||||
|
||||
|
||||
notes = Note.objects.filter(course_id=course_id, user=request.user).order_by('-created', 'uri')
|
||||
|
||||
prettyprint = {'sort_keys':True, 'indent':2, 'separators':(',', ': ')}
|
||||
json_notes = json.dumps([n.as_dict() for n in notes], **prettyprint)
|
||||
|
||||
json_notes = json.dumps([n.as_dict() for n in notes])
|
||||
context = {
|
||||
'course': course,
|
||||
'notes': notes,
|
||||
|
||||
Reference in New Issue
Block a user