From d0e4c8e7152e7fd4a147a7f7610a02210d3aa822 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 9 Jul 2013 09:57:23 +0200 Subject: [PATCH] fix course parsing --- teleforma/views/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5