Skip to content

Commit

Permalink
Update serializer: set correct model
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Nov 1, 2023
1 parent eaf89b2 commit de80bb1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions api/scpca_portal/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -45,7 +53,7 @@ class Meta:

class ExternalAccessionSerializer(serializers.ModelSerializer):
class Meta:
model = Contact
model = ExternalAccession
fields = (
"accession",
"has_raw",
Expand Down

0 comments on commit de80bb1

Please sign in to comment.