From: Guillaume Pellerin Date: Tue, 9 Jul 2013 07:57:23 +0000 (+0200) Subject: fix course parsing X-Git-Tag: 1.1~584 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d0e4c8e7152e7fd4a147a7f7610a02210d3aa822;p=teleforma.git fix course parsing --- diff --git a/teleforma/views/core.py b/teleforma/views/core.py index 345d4573..fdda7206 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -345,7 +345,7 @@ class DocumentView(DetailView): context['course'] = document.course # context['notes'] = document.notes.all().filter(author=self.request.user) content_type = ContentType.objects.get(app_label="teleforma", model="course") - context['room'] = get_room(name=document.course, content_type=content_type, + context['room'] = get_room(name=document.course.title, content_type=content_type, id=document.course.id) access = get_access(document, all_courses) if not access: