Example #1
0
class OpenEdXInstanceDeploymentNotificationSerializer(serializers.Serializer):
    """
    Simplistic serializer with status and changes for certain Open edX instance.
    """
    status = serializers.ChoiceField(choices=DeploymentState.choices())
    deployed_changes = serializers.JSONField()
    date = serializers.DateTimeField()
Example #2
0
class OpenEdXInstanceDeploymentStatusSerializer(serializers.Serializer):
    """
    Serializer with configuration details about the user's Open edX instance.
    """
    status = serializers.ChoiceField(choices=DeploymentState.choices())
    undeployed_changes = serializers.JSONField()
    deployed_changes = serializers.JSONField()
    deployment_type = serializers.ChoiceField(choices=DeploymentType.choices())