Endpoints support create, read, and list operations. NOTE: This commit also includes a retrofitted SimpleRouter that supports overriding the lookup regex. This retrofit is simpler to implement than updating edx-ora2 which is pinned to DRF 2.3.x. XCOM-524
14 lines
349 B
Python
14 lines
349 B
Python
""" Credit API Serializers """
|
|
|
|
from rest_framework import serializers
|
|
|
|
from openedx.core.djangoapps.credit.models import CreditCourse
|
|
|
|
|
|
class CreditCourseSerializer(serializers.ModelSerializer):
|
|
""" CreditCourse Serializer """
|
|
|
|
class Meta(object): # pylint: disable=missing-docstring
|
|
model = CreditCourse
|
|
exclude = ('id',)
|