Skip to content

Commit

Permalink
fix(api): make the bibtex field an object
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Jun 2, 2024
1 parent 2595254 commit 3c82023
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apis_ontology/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def get_fields(self):
fields["bibtex"] = serializers.SerializerMethodField(method_name="get_bibtex")
return fields

@extend_schema_field(OpenApiTypes.OBJECT)
def get_bibtex(self, obj):
return json.loads(obj.bibtex)

Expand Down

0 comments on commit 3c82023

Please sign in to comment.