Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
258274f2
Commit
258274f2
authored
Sep 04, 2012
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add string to model class unicode
parent
520d5620
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
common/djangoapps/student/models.py
+1
-1
lms/templates/courses.html
+6
-0
No files found.
common/djangoapps/student/models.py
View file @
258274f2
...
...
@@ -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
)
...
...
lms/templates/courses.html
View file @
258274f2
...
...
@@ -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']:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment