Skip to content
Snippets Groups Projects
Unverified Commit 1abfb98c authored by Dillon Dumesnil's avatar Dillon Dumesnil
Browse files

Adding in missing field to the DateSummarySerializer

parent df3f8d43
No related merge requests found
......@@ -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()
......
......@@ -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
......
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