Skip to content

Commit

Permalink
Serialize all nodegroups
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls authored and aarongundel committed Nov 21, 2024
1 parent 3f60e1d commit 20af8e9
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 20af8e9

Please sign in to comment.