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

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

parent aa0fac2f
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !327. Comments created here will be created in the context of that merge request.
......@@ -25,23 +25,26 @@
# #
###############################################################################
import simplejson as json
import beat.core.plotter
import beat.core.plotterparameter
from django.utils.encoding import smart_text
from rest_framework import serializers
from ..common import fields as beat_fields
from ..common.serializers import (
DynamicFieldsSerializer,
ContributionSerializer,
ContributionCreationSerializer,
)
from .models import Plotter, PlotterParameter, DefaultPlotter
from rest_framework import serializers
from ..code.serializers import CodeSerializer, CodeCreationSerializer
from ..libraries.serializers import LibraryReferenceSerializer
from django.utils.encoding import smart_text
import beat.core.plotter
import beat.core.plotterparameter
import simplejson as json
from .models import Plotter, PlotterParameter, DefaultPlotter
class PlotterSerializer(ContributionSerializer):
......@@ -134,7 +137,7 @@ class PlotterParameterCreationFailedException(Exception):
class PlotterParameterCreationSerializer(ContributionCreationSerializer):
data = serializers.JSONField(required=False)
data = beat_fields.JSONField(required=False)
class Meta(ContributionCreationSerializer.Meta):
model = PlotterParameter
......
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