From de80bb10817b2b266cdcb68ac23806e5953e3bd0 Mon Sep 17 00:00:00 2001 From: Arkadii Yakovets Date: Wed, 1 Nov 2023 09:59:37 -0700 Subject: [PATCH] Update serializer: set correct model --- api/scpca_portal/serializers.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/api/scpca_portal/serializers.py b/api/scpca_portal/serializers.py index 28bfd750..a717798d 100644 --- a/api/scpca_portal/serializers.py +++ b/api/scpca_portal/serializers.py @@ -11,7 +11,15 @@ from rest_framework import serializers -from scpca_portal.models import ComputedFile, Contact, Project, ProjectSummary, Publication, Sample +from scpca_portal.models import ( + ComputedFile, + Contact, + ExternalAccession, + Project, + ProjectSummary, + Publication, + Sample, +) class ComputedFileSerializer(serializers.ModelSerializer): @@ -45,7 +53,7 @@ class Meta: class ExternalAccessionSerializer(serializers.ModelSerializer): class Meta: - model = Contact + model = ExternalAccession fields = ( "accession", "has_raw",