Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
1abfb98c
Unverified
Commit
1abfb98c
authored
4 years ago
by
Dillon Dumesnil
Browse files
Options
Downloads
Patches
Plain Diff
Adding in missing field to the DateSummarySerializer
parent
df3f8d43
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lms/djangoapps/course_home_api/dates/v1/serializers.py
+1
-0
1 addition, 0 deletions
lms/djangoapps/course_home_api/dates/v1/serializers.py
lms/djangoapps/course_home_api/dates/v1/views.py
+2
-0
2 additions, 0 deletions
lms/djangoapps/course_home_api/dates/v1/views.py
with
3 additions
and
0 deletions
lms/djangoapps/course_home_api/dates/v1/serializers.py
+
1
−
0
View file @
1abfb98c
...
...
@@ -14,6 +14,7 @@ class DateSummarySerializer(serializers.Serializer):
"""
Serializer for Date Summary Objects.
"""
complete
=
serializers
.
NullBooleanField
()
date
=
serializers
.
DateTimeField
()
date_type
=
serializers
.
CharField
()
description
=
serializers
.
CharField
()
...
...
This diff is collapsed.
Click to expand it.
lms/djangoapps/course_home_api/dates/v1/views.py
+
2
−
0
View file @
1abfb98c
...
...
@@ -36,6 +36,8 @@ class DatesTabView(RetrieveAPIView):
Body consists of the following fields:
course_date_blocks: List of serialized DateSummary objects. Each serialization has the following fields:
complete: (bool) Meant to only be used by assignments. Indicates completeness for an
assignment.
date: (datetime) The date time corresponding for the event
date_type: (str) The type of date (ex. course-start-date, assignment-due-date, etc.)
description: (str) The description for the date event
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment