Skip to content

Commit

Permalink
Merge branch 'main' of github.com:brunoamaral/gregory
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoamaral committed Nov 24, 2022
2 parents 66b11a6 + a1e3535 commit 6ad970d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class ArticleSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Articles
depth = 1
fields = ['article_id','title','summary','link','published_date','source','publisher','container_title','authors','relevant','ml_prediction_gnb','ml_prediction_lr','discovery_date','noun_phrases','doi','access']
read_only_fields = ('discovery_date','ml_prediction_gnb','ml_prediction_lr','noun_phrases')
fields = ['article_id','title','summary','link','published_date','source','publisher','container_title','authors','relevant','ml_prediction_gnb','ml_prediction_lr','discovery_date','noun_phrases','doi','access','takeaways']
read_only_fields = ('discovery_date','ml_prediction_gnb','ml_prediction_lr','noun_phrases','takeaways')

class TrialSerializer(serializers.HyperlinkedModelSerializer):
source = serializers.SlugRelatedField(many=False, read_only=True, slug_field='name')
Expand Down

0 comments on commit 6ad970d

Please sign in to comment.