From 258274f2a7d265e2af88079fb87d2346b8444128 Mon Sep 17 00:00:00 2001 From: ichuang Date: Tue, 4 Sep 2012 10:25:28 -0400 Subject: [PATCH] add string to model class unicode --- common/djangoapps/student/models.py | 2 +- lms/templates/courses.html | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/common/djangoapps/student/models.py b/common/djangoapps/student/models.py index 529a6f1298..c37b9fce16 100644 --- a/common/djangoapps/student/models.py +++ b/common/djangoapps/student/models.py @@ -187,7 +187,7 @@ class CourseEnrollment(models.Model): unique_together = (('user', 'course_id'), ) def __unicode__(self): - return "%s: %s (%s)" % (self.user, self.course_id, self.created) + return "[CourseEnrollment] %s: %s (%s)" % (self.user, self.course_id, self.created) @receiver(post_save, sender=CourseEnrollment) diff --git a/lms/templates/courses.html b/lms/templates/courses.html index 25930184a9..414292012c 100644 --- a/lms/templates/courses.html +++ b/lms/templates/courses.html @@ -19,6 +19,12 @@
## I'm removing this for now since we aren't using it for the fall. ## <%include file="course_filter.html" /> + +<%! +from django.core.urlresolvers import reverse +%> +

For 8.01 Reading Questions, click on Find Courses

+
%for course in universities['MITx']: