Adding in missing field to the DateSummarySerializer

This commit is contained in:
Dillon Dumesnil
2020-07-09 06:44:35 -07:00
parent df3f8d4344
commit 1abfb98cab
2 changed files with 3 additions and 0 deletions

View File

@@ -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()

View File

@@ -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