Adding in missing field to the DateSummarySerializer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user