Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
janekg89 committed Dec 20, 2020
1 parent 65cc244 commit e8d5de7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backend/pkdb_app/outputs/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
CommentElasticSerializer
from ..interventions.models import Intervention
from ..serializers import (
ExSerializer, StudySmallElasticSerializer, SidNameLabelSerializer, PKField)
ExSerializer, StudySmallElasticSerializer, SidNameLabelSerializer)
from ..subjects.models import Group, DataFile, Individual
from ..subjects.serializers import (
EXTERN_FILE_FIELDS, GroupSmallElasticSerializer, IndividualSmallElasticSerializer)
Expand Down Expand Up @@ -63,7 +63,7 @@ class OutputSerializer(MeasurementTypeableSerializer):
required=False,
allow_null=True,
)
interventions = PKField(
interventions = serializers.PrimaryKeyRelatedField(
queryset=Intervention.objects.all(),
many=True, required=True, allow_null=True)

Expand Down
2 changes: 0 additions & 2 deletions backend/pkdb_app/subjects/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ def validate_count(count):
raise serializers.ValidationError(f"count <{count}> has to be greater or equal to 1. ")
return count


def validate(self, attrs):

try:
# perform via dedicated function on categorials
for info_node in ['substance', 'measurement_type']:
Expand Down

0 comments on commit e8d5de7

Please sign in to comment.