Skip to content

Commit

Permalink
Serialize all nodegroups
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Nov 6, 2024
1 parent 65ebf45 commit 7e2f8a5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions arches_lingo/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@ class Meta:


class SchemeSerializer(ArchesModelSerializer):
# TODO: Reduce duplication with Meta.nodegroups, below?
statement = SchemeStatementSerializer(many=True, required=False)

class Meta:
model = ResourceInstance
graph_slug = "scheme"
nodegroups = ["statement"]
nodegroups = "__all__"
fields = "__all__"


Expand All @@ -30,10 +27,8 @@ class Meta:


class ConceptSerializer(ArchesModelSerializer):
statement = ConceptStatementSerializer(many=True, required=False)

class Meta:
model = ResourceInstance
graph_slug = "concept"
nodegroups = ["statement"]
nodegroups = "__all__"
fields = "__all__"

0 comments on commit 7e2f8a5

Please sign in to comment.