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

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

parent ef5360f6
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.
......@@ -41,6 +41,7 @@ from ..team.models import Team
from ..common.utils import ensure_html
from ..common.utils import annotate_full_name
from ..common.utils import validate_restructuredtext
from ..common import fields as beat_fields
from .models import Shareable, Versionable, Contribution
from .exceptions import ContributionCreationError
......@@ -301,7 +302,7 @@ class ContributionSerializer(VersionableSerializer):
class ContributionModSerializer(serializers.ModelSerializer):
declaration = serializers.JSONField(required=False)
declaration = beat_fields.JSONField(required=False)
description = serializers.CharField(required=False, allow_blank=True)
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