]> git.parisson.com Git - teleforma.git/commitdiff
fix course parsing
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 9 Jul 2013 07:57:23 +0000 (09:57 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 9 Jul 2013 07:57:23 +0000 (09:57 +0200)
teleforma/views/core.py

index 345d45733afda551d5d123b4aca6be20ea8d4631..fdda72064d2957557ca87dd45f27fbf446339b1c 100644 (file)
@@ -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: