Skip to content

Commit

Permalink
Merge pull request #307 from brunoamaral/identifiers-admin
Browse files Browse the repository at this point in the history
Add identifiers to public API
  • Loading branch information
brunoamaral authored Feb 5, 2023
2 parents 9dc8605 + 079a174 commit 78433e0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
30 changes: 11 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
__pycache__/
./.env
.env
venv
.venv
.DS_Store
hugo/content/developers/*.xlsx
hugo/content/developers/*.zip
hugo/content/developers/**/*.json
.env
.gitignore
.hugo_build.lock
.venv
.vscode/
data/articles.json
data/embeds.json
Expand All @@ -17,17 +13,24 @@ db-data/
dev.py
django/data/
django/gregory/data/
django/gregory/migrations/
django/gregory/ml_models/
django/indexers/input/*.json
django/static
docker-data/
docker-python/
env
env3.10
env311
hugo/content/articles
hugo/content/articles/*/
hugo/content/developers/*.xlsx
hugo/content/developers/*.zip
hugo/content/developers/**/*.json
hugo/content/developers/articles.json
hugo/content/developers/articles.xlsx
hugo/content/developers/articles.zip
hugo/content/developers/articles.zip
hugo/content/developers/trials.json
hugo/content/developers/trials.xlsx
hugo/content/developers/trials.zip
Expand All @@ -46,20 +49,9 @@ public/
python-ml/data/202*-*.csv
python-ml/data/202*-*.json
python-ml/data/source.json
python-ml/models/model_gnb.joblib
python-ml/models/model_lr.joblib
python-ml/models/model_lsvc.joblib
python-ml/models/model_mnb.joblib
python-ml/models/
python-ml/utils/__pycache__/
python-ml/utils/__pycache__/model_utils.cpython-37.pyc
python-ml/utils/__pycache__/text_utils.cpython-37.pyc
resources/
sqlite-to-postgres/
venv3
venv311
workspace.code-workspace
hugo/data/embeds.json
django/indexers/input/*.json
hugo/content/developers/articles.zip
hugo/content/developers/trials.zip
hugo/content/developers/articles.zip
hugo/content/developers/trials.zip
2 changes: 1 addition & 1 deletion django/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TrialSerializer(serializers.HyperlinkedModelSerializer):

class Meta:
model = Trials
fields = ['trial_id','title','summary','published_date','discovery_date','link','source','relevant']
fields = ['trial_id','title','summary','published_date','discovery_date','link','source','relevant','identifiers']
read_only_fields = ('discovery_date',)

class SourceSerializer(serializers.HyperlinkedModelSerializer):
Expand Down

0 comments on commit 78433e0

Please sign in to comment.