Commit 258274f2 by ichuang

add string to model class unicode

parent 520d5620
......@@ -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)
......
......@@ -19,6 +19,12 @@
<section class="container">
## 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
%>
<h1>For 8.01 Reading Questions, click on <a href="${reverse('courses')}">Find Courses</a></h1>
<section class="courses">
<section class='university-column'>
%for course in universities['MITx']:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment