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

[algorithms][serializers] Implement mod serializer

parent af848676
No related branches found
No related tags found
1 merge request!327Refactor update creation api
......@@ -32,7 +32,7 @@ import beat.core.algorithm
from rest_framework import serializers
from operator import itemgetter
from ..code.serializers import CodeSerializer, CodeCreationSerializer
from ..code.serializers import CodeSerializer, CodeCreationSerializer, CodeModSerializer
from ..libraries.serializers import LibraryReferenceSerializer
from ..dataformats.serializers import ReferencedDataFormatSerializer
from ..attestations.serializers import AttestationSerializer
......@@ -52,6 +52,12 @@ class AlgorithmCreationSerializer(CodeCreationSerializer):
beat_core_class = beat.core.algorithm.Algorithm
class AlgorithmModSerializer(CodeModSerializer):
class Meta(CodeModSerializer.Meta):
model = Algorithm
beat_core_class = beat.core.algorithm.Algorithm
# ----------------------------------------------------------
......
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