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",