Skip to content
Snippets Groups Projects
Commit f8271392 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[reports][serializers] Replace DRF JSONField with custom version

parent b7cec201
No related branches found
No related tags found
1 merge request!327Refactor update creation api
This commit is part of merge request !327. Comments created here will be created in the context of that merge request.
......@@ -30,8 +30,9 @@ from rest_framework import serializers
from .models import Report
from ..common.models import Contribution
from ..ui.templatetags.markup import restructuredtext
from ..common.utils import validate_restructuredtext
from ..common import fields as beat_fields
from ..ui.templatetags.markup import restructuredtext
import simplejson as json
......@@ -189,7 +190,7 @@ class ReportCreationFailedException(Exception):
class ReportCreationSerializer(serializers.ModelSerializer):
content = serializers.JSONField()
content = beat_fields.JSONField()
experiments = serializers.ListField(child=serializers.CharField())
class Meta:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment