Revert "Use drf-yasg for Open API documentation"

This commit is contained in:
Ned Batchelder
2019-06-11 16:05:00 -04:00
committed by GitHub
parent a7bc22eb9c
commit 39c7a2db7c
27 changed files with 46 additions and 105 deletions

View File

@@ -28,10 +28,6 @@ class CourseModeSerializer(serializers.Serializer):
sku = serializers.CharField(required=False)
bulk_sku = serializers.CharField(required=False)
class Meta(object):
# For disambiguating within the drf-yasg swagger schema
ref_name = 'course_modes.CourseMode'
def create(self, validated_data):
"""
This method must be implemented for use in our

View File

@@ -30,6 +30,7 @@ class EntitlementsSerializerTests(ModuleStoreTestCase):
'course_uuid': str(entitlement.course_uuid),
'mode': entitlement.mode,
'refund_locked': False,
'enrollment_course_run': None,
'order_number': entitlement.order_number,
'created': entitlement.created.strftime('%Y-%m-%dT%H:%M:%S.%fZ'),
'modified': entitlement.modified.strftime('%Y-%m-%dT%H:%M:%S.%fZ'),