Commit d20a859e by Zia Fazal Committed by Jonathan Piacenti

added "due" field to CourseContentDetail

parent 8448118a
......@@ -48,6 +48,7 @@ class CoursesApiTests(TestCase):
category="chapter",
parent_location=self.course.location,
data=self.test_data,
due="2014-05-16T14:30:00Z",
display_name="Overview"
)
......
......@@ -98,6 +98,9 @@ def _serialize_content(request, course_id, content):
content_uri = '{}/content/{}'.format(content_uri, content_id)
data['uri'] = content_uri
if hasattr(content, 'due'):
data['due'] = content.due
return data
......
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